> This needs a comment explaining how it's different from > nsIDOMMozPowerManager.
The purpose of PowerManagerService is to be used by chrome JS code and C++ code. And since it is a component it can be override by extensions.
> But reading through part 2, I'm thinking we may want to roll this whole > interface into hal.
Given the reason above, we can move the functional part to hal but still provide the interface.
> This needs a comment explaining how it's different from anager.
> nsIDOMMozPowerM
The purpose of PowerManagerService is to be used by chrome JS code and C++ code. And since it is a component it can be override by extensions.
> But reading through part 2, I'm thinking we may want to roll this whole
> interface into hal.
Given the reason above, we can move the functional part to hal but still provide the interface.