OLD | NEW |
(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_ |
OLD | NEW |