Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1509)

Unified Diff: ash/high_contrast/high_contrast_controller.h

Issue 10962008: High contrast mode support for multiple displays. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed code style. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/high_contrast/high_contrast_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/high_contrast/high_contrast_controller.h
diff --git a/ash/high_contrast/high_contrast_controller.h b/ash/high_contrast/high_contrast_controller.h
index df151832efecf4614489aea52eb133dcf341cc3c..2afd60b3aa4ee1afb1f173cb5419d2819059d874 100644
--- a/ash/high_contrast/high_contrast_controller.h
+++ b/ash/high_contrast/high_contrast_controller.h
@@ -20,11 +20,17 @@ class ASH_EXPORT HighContrastController {
~HighContrastController() {}
+ // Set high contrast mode and update all available displays.
void SetEnabled(bool enabled);
+ // Update high contrast mode on the just added display.
+ void OnRootWindowAdded(aura::RootWindow* root_window);
+
private:
- aura::RootWindow* root_window_;
+ // Update high contrast mode on the passed display.
+ void UpdateDisplay(aura::RootWindow* root_window);
+ // Indicates if the high contrast mode is enabled or disabled.
bool enabled_;
DISALLOW_COPY_AND_ASSIGN(HighContrastController);
« no previous file with comments | « no previous file | ash/high_contrast/high_contrast_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698