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

Side by Side 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: fix typo. Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_MAGNIFICATION_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_MAGNIFICATION_MANAGER_H_
7
8 namespace chromeos {
9
10
11 // MagnificationManager controls the full screen magnifier from chrome-browser
12 // side (not ash side).
13 //
14 // MagnificationManager does:
15 // - Watch logged-in. Changes the behavior between the login screen and user
16 // desktop.
17 // - Watch change of the pref. When the pref changes, the setting of the
18 // magnifier will interlock with it.
19
20 class MagnificationManager {
21 public:
22 // Creates an instance of MagnificationManager. This should be called once,
23 // because only one instance should exist at the same time.
24 static MagnificationManager* CreateInstance();
25 // Returns the existing instance. If there is no instance, returns NULL.
26 static MagnificationManager* GetInstance();
27
28 virtual ~MagnificationManager() {}
29
30 // Returns if the magnifier is enabled or not.
31 virtual bool IsEnabled() = 0;
32 // Enables (or disables if |enabled| is false) the magnifierh.
33 virtual void SetEnabled(bool enabled) = 0;
34 };
35
36 } // namespace chromeos
37
38 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_MAGNIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698