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

Unified Diff: ash/high_contrast/high_contrast_controller.h

Issue 230613004: Block keyboard and mouse input when maximize mode is activated by accelerometer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master. Created 6 years, 8 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
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 49aca611791a3e73a1fb2130fe11d81c61c4e67c..10d0b7de8222f32e36dbd5881b363b7f339ff498 100644
--- a/ash/high_contrast/high_contrast_controller.h
+++ b/ash/high_contrast/high_contrast_controller.h
@@ -6,26 +6,25 @@
#define ASH_HIGH_CONTRAST_HIGH_CONTRAST_CONTROLLER_H_
#include "ash/ash_export.h"
+#include "ash/shell_observer.h"
#include "base/basictypes.h"
namespace aura {
-class RootWindow;
class Window;
}
namespace ash {
-class ASH_EXPORT HighContrastController {
+class ASH_EXPORT HighContrastController : public ShellObserver {
public:
HighContrastController();
-
- ~HighContrastController() {}
+ virtual ~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::Window* root_window);
+ // ShellObserver:
+ virtual void OnRootWindowAdded(aura::Window* root_window) OVERRIDE;
private:
// Update high contrast mode on the passed display.
« no previous file with comments | « ash/desktop_background/desktop_background_controller.cc ('k') | ash/high_contrast/high_contrast_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698