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

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: rebase @169437 Created 8 years 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 #include "chrome/browser/chromeos/accessibility/accessibility_util.h"
9
10 namespace chromeos {
11
12 // MagnificationManager controls the full screen magnifier from chrome-browser
13 // side (not ash side).
14 //
15 // MagnificationManager does:
16 // - Watch logged-in. Changes the behavior between the login screen and user
17 // desktop.
18 // - Watch change of the pref. When the pref changes, the setting of the
19 // magnifier will interlock with it.
20
21 class MagnificationManager {
22 public:
23 // Creates an instance of MagnificationManager. This should be called once,
24 // because only one instance should exist at the same time.
25 static MagnificationManager* CreateInstance();
26 // Returns the existing instance. If there is no instance, returns NULL.
27 static MagnificationManager* GetInstance();
28
29 virtual ~MagnificationManager() {}
30
31 // Returns the current type of the screen magnifier.
32 virtual accessibility::ScreenMagnifierType GetScreenMagnifierType() = 0;
33 // Changes the type of the screen magnifier.
34 virtual void SetScreenMagnifier(accessibility::ScreenMagnifierType type) = 0;
35 };
36
37 } // namespace chromeos
38
39 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_MAGNIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698