chromeos: Add support for dimming the screen.
This makes Chrome listen for messages from the power manager
asking it to dim or undim the screen. We'll use this on
desktop devices with external displays to dim the screen
just before blanking it when the user is idle.
BUG=125176
TEST=added, also did manual testing with powerd changes
Review URL: http://codereview.chromium.org/10263011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134638 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ash/ash.gyp b/ash/ash.gyp
index 34a97b6..f4014ea 100644
--- a/ash/ash.gyp
+++ b/ash/ash.gyp
@@ -231,6 +231,8 @@
'wm/root_window_layout_manager.cc',
'wm/root_window_layout_manager.h',
'wm/scoped_observer.h',
+ 'wm/screen_dimmer.cc',
+ 'wm/screen_dimmer.h',
'wm/shadow.cc',
'wm/shadow.h',
'wm/shadow_controller.cc',
@@ -375,6 +377,7 @@
'wm/panel_layout_manager_unittest.cc',
'wm/power_button_controller_unittest.cc',
'wm/root_window_event_filter_unittest.cc',
+ 'wm/screen_dimmer_unittest.cc',
'wm/shadow_controller_unittest.cc',
'wm/shelf_layout_manager_unittest.cc',
'wm/system_gesture_event_filter_unittest.cc',