[Power] Share state changed callback between instances
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 4 Oct 2013 13:22:55 +0000 (10:22 -0300)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 4 Oct 2013 15:16:07 +0000 (12:16 -0300)
commitadc75d38d7fbdf5901211565ddcf82fd12d03fae
tree425a2b7f474cc283383bcf5e3206d4befc351390
parentaaee338933216c1bdd94584baa55f7a18495ddee
[Power] Share state changed callback between instances

The power.h library in Tizen only allows one callback for tracking state
changes, so we make this tracking for the extension, since we can have
multiple instances. Instances now add (and remove) themselves to
PowerEventSource.
power/mobile/power_event_source.cc [new file with mode: 0644]
power/mobile/power_event_source.h [new file with mode: 0644]
power/power.gyp
power/power_extension.cc
power/power_extension.h
power/power_instance_mobile.cc
power/power_instance_mobile.h