OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_MAGNIFICATION_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_MAGNIFICATION_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_MAGNIFICATION_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_MAGNIFICATION_MANAGER_H_ |
7 | 7 |
8 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 8 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
9 | 9 |
10 class Profile; | 10 class Profile; |
(...skipping 19 matching lines...) Expand all Loading... |
30 // Deletes the existing instance of MagnificationManager. | 30 // Deletes the existing instance of MagnificationManager. |
31 static void Shutdown(); | 31 static void Shutdown(); |
32 | 32 |
33 // Returns the existing instance. If there is no instance, returns NULL. | 33 // Returns the existing instance. If there is no instance, returns NULL. |
34 static MagnificationManager* Get(); | 34 static MagnificationManager* Get(); |
35 | 35 |
36 // Returns if the screen magnifier is enabled. | 36 // Returns if the screen magnifier is enabled. |
37 virtual bool IsMagnifierEnabled() const = 0; | 37 virtual bool IsMagnifierEnabled() const = 0; |
38 | 38 |
39 // Returns the current type of the screen magnifier. | 39 // Returns the current type of the screen magnifier. |
40 virtual ash::MagnifierType GetMagnifierType() const = 0; | 40 virtual ui::MagnifierType GetMagnifierType() const = 0; |
41 | 41 |
42 // Enables the screen magnifier. | 42 // Enables the screen magnifier. |
43 virtual void SetMagnifierEnabled(bool enabled) = 0; | 43 virtual void SetMagnifierEnabled(bool enabled) = 0; |
44 | 44 |
45 // Changes the type of the screen magnifier. | 45 // Changes the type of the screen magnifier. |
46 virtual void SetMagnifierType(ash::MagnifierType type) = 0; | 46 virtual void SetMagnifierType(ui::MagnifierType type) = 0; |
47 | 47 |
48 // Saves the magnifier scale to the pref. | 48 // Saves the magnifier scale to the pref. |
49 virtual void SaveScreenMagnifierScale(double scale) = 0; | 49 virtual void SaveScreenMagnifierScale(double scale) = 0; |
50 | 50 |
51 // Loads the magnifier scale from the pref. | 51 // Loads the magnifier scale from the pref. |
52 virtual double GetSavedScreenMagnifierScale() const = 0; | 52 virtual double GetSavedScreenMagnifierScale() const = 0; |
53 | 53 |
54 virtual void SetProfileForTest(Profile* profile) = 0; | 54 virtual void SetProfileForTest(Profile* profile) = 0; |
55 | 55 |
56 protected: | 56 protected: |
57 virtual ~MagnificationManager() {} | 57 virtual ~MagnificationManager() {} |
58 }; | 58 }; |
59 | 59 |
60 } // namespace chromeos | 60 } // namespace chromeos |
61 | 61 |
62 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_MAGNIFICATION_MANAGER_H_ | 62 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_MAGNIFICATION_MANAGER_H_ |
OLD | NEW |