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