Bug 702256 - "[Gonk] Add DOM API for turning screen on/off and adjusting the screen's brightness" r=cjones,mounir

This commit is contained in:
Justin Lebar
2011-12-05 01:07:00 +08:00
parent 1ac6f28a98
commit 3dcde4d38a
12 changed files with 330 additions and 40 deletions

View File

@@ -105,6 +105,26 @@ GetCurrentBatteryInformation(hal::BatteryInformation* aBatteryInfo)
bridge->GetCurrentBatteryInformation(aBatteryInfo);
}
bool
GetScreenEnabled()
{
return true;
}
void
SetScreenEnabled(bool enabled)
{}
double
GetScreenBrightness()
{
return 1;
}
void
SetScreenBrightness(double brightness)
{}
} // hal_impl
} // mozilla