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 "ash/common/accessibility_types.h" |
8 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 9 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
9 | 10 |
10 class Profile; | 11 class Profile; |
11 | 12 |
12 namespace chromeos { | 13 namespace chromeos { |
13 | 14 |
14 // MagnificationManager controls the full screen magnifier from chrome-browser | 15 // MagnificationManager controls the full screen magnifier from chrome-browser |
15 // side (not ash side). | 16 // side (not ash side). |
16 // | 17 // |
17 // MagnificationManager does: | 18 // MagnificationManager does: |
(...skipping 12 matching lines...) Expand all Loading... |
30 // Deletes the existing instance of MagnificationManager. | 31 // Deletes the existing instance of MagnificationManager. |
31 static void Shutdown(); | 32 static void Shutdown(); |
32 | 33 |
33 // Returns the existing instance. If there is no instance, returns NULL. | 34 // Returns the existing instance. If there is no instance, returns NULL. |
34 static MagnificationManager* Get(); | 35 static MagnificationManager* Get(); |
35 | 36 |
36 // Returns if the screen magnifier is enabled. | 37 // Returns if the screen magnifier is enabled. |
37 virtual bool IsMagnifierEnabled() const = 0; | 38 virtual bool IsMagnifierEnabled() const = 0; |
38 | 39 |
39 // Returns the current type of the screen magnifier. | 40 // Returns the current type of the screen magnifier. |
40 virtual ui::MagnifierType GetMagnifierType() const = 0; | 41 virtual ash::MagnifierType GetMagnifierType() const = 0; |
41 | 42 |
42 // Enables the screen magnifier. | 43 // Enables the screen magnifier. |
43 virtual void SetMagnifierEnabled(bool enabled) = 0; | 44 virtual void SetMagnifierEnabled(bool enabled) = 0; |
44 | 45 |
45 // Changes the type of the screen magnifier. | 46 // Changes the type of the screen magnifier. |
46 virtual void SetMagnifierType(ui::MagnifierType type) = 0; | 47 virtual void SetMagnifierType(ash::MagnifierType type) = 0; |
47 | 48 |
48 // Saves the magnifier scale to the pref. | 49 // Saves the magnifier scale to the pref. |
49 virtual void SaveScreenMagnifierScale(double scale) = 0; | 50 virtual void SaveScreenMagnifierScale(double scale) = 0; |
50 | 51 |
51 // Loads the magnifier scale from the pref. | 52 // Loads the magnifier scale from the pref. |
52 virtual double GetSavedScreenMagnifierScale() const = 0; | 53 virtual double GetSavedScreenMagnifierScale() const = 0; |
53 | 54 |
54 virtual void SetProfileForTest(Profile* profile) = 0; | 55 virtual void SetProfileForTest(Profile* profile) = 0; |
55 | 56 |
56 protected: | 57 protected: |
57 virtual ~MagnificationManager() {} | 58 virtual ~MagnificationManager() {} |
58 }; | 59 }; |
59 | 60 |
60 } // namespace chromeos | 61 } // namespace chromeos |
61 | 62 |
62 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_MAGNIFICATION_MANAGER_H_ | 63 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_MAGNIFICATION_MANAGER_H_ |
OLD | NEW |