crosswalk-project/tizen-extensions-crosswalk — pull request #197 by cmarcelo (2013-10-04 15:16:44+00:00)
Title: [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.