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

Unified Diff: chrome/browser/chromeos/accessibility/magnification_manager.h

Issue 11065008: Full Screen Magnifier: Add MagnificationManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase @169437 Created 8 years, 1 month 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: chrome/browser/chromeos/accessibility/magnification_manager.h
diff --git a/chrome/browser/chromeos/accessibility/magnification_manager.h b/chrome/browser/chromeos/accessibility/magnification_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..2b39a077b5e766c78afb2c6a96266b7aa754c3db
--- /dev/null
+++ b/chrome/browser/chromeos/accessibility/magnification_manager.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_MAGNIFICATION_MANAGER_H_
+#define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_MAGNIFICATION_MANAGER_H_
+
+#include "chrome/browser/chromeos/accessibility/accessibility_util.h"
+
+namespace chromeos {
+
+// MagnificationManager controls the full screen magnifier from chrome-browser
+// side (not ash side).
+//
+// MagnificationManager does:
+// - Watch logged-in. Changes the behavior between the login screen and user
+// desktop.
+// - Watch change of the pref. When the pref changes, the setting of the
+// magnifier will interlock with it.
+
+class MagnificationManager {
+ public:
+ // Creates an instance of MagnificationManager. This should be called once,
+ // because only one instance should exist at the same time.
+ static MagnificationManager* CreateInstance();
+ // Returns the existing instance. If there is no instance, returns NULL.
+ static MagnificationManager* GetInstance();
+
+ virtual ~MagnificationManager() {}
+
+ // Returns the current type of the screen magnifier.
+ virtual accessibility::ScreenMagnifierType GetScreenMagnifierType() = 0;
+ // Changes the type of the screen magnifier.
+ virtual void SetScreenMagnifier(accessibility::ScreenMagnifierType type) = 0;
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_MAGNIFICATION_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698