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 ASH_COMMON_SHELL_DELEGATE_H_ | 5 #ifndef ASH_COMMON_SHELL_DELEGATE_H_ |
6 #define ASH_COMMON_SHELL_DELEGATE_H_ | 6 #define ASH_COMMON_SHELL_DELEGATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 // Delegate of the Shell. | 58 // Delegate of the Shell. |
59 class ASH_EXPORT ShellDelegate { | 59 class ASH_EXPORT ShellDelegate { |
60 public: | 60 public: |
61 // The Shell owns the delegate. | 61 // The Shell owns the delegate. |
62 virtual ~ShellDelegate() {} | 62 virtual ~ShellDelegate() {} |
63 | 63 |
64 // Returns the connector for the mojo service manager. Returns null in tests. | 64 // Returns the connector for the mojo service manager. Returns null in tests. |
65 virtual service_manager::Connector* GetShellConnector() const = 0; | 65 virtual service_manager::Connector* GetShellConnector() const = 0; |
66 | 66 |
67 // Returns true if this is the first time that the shell has been run after | |
68 // the system has booted. false is returned after the shell has been | |
69 // restarted, typically due to logging in as a guest or logging out. | |
70 virtual bool IsFirstRunAfterBoot() const = 0; | |
71 | |
72 // Returns true if multi-profiles feature is enabled. | 67 // Returns true if multi-profiles feature is enabled. |
73 virtual bool IsMultiProfilesEnabled() const = 0; | 68 virtual bool IsMultiProfilesEnabled() const = 0; |
74 | 69 |
75 // Returns true if incognito mode is allowed for the user. | 70 // Returns true if incognito mode is allowed for the user. |
76 // Incognito windows are restricted for supervised users. | 71 // Incognito windows are restricted for supervised users. |
77 virtual bool IsIncognitoAllowed() const = 0; | 72 virtual bool IsIncognitoAllowed() const = 0; |
78 | 73 |
79 // Returns true if we're running in forced app mode. | 74 // Returns true if we're running in forced app mode. |
80 virtual bool IsRunningInForcedAppMode() const = 0; | 75 virtual bool IsRunningInForcedAppMode() const = 0; |
81 | 76 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 143 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
149 | 144 |
150 // Toggles the status of the touchpad / touchscreen on or off. | 145 // Toggles the status of the touchpad / touchscreen on or off. |
151 virtual void ToggleTouchpad() {} | 146 virtual void ToggleTouchpad() {} |
152 virtual void ToggleTouchscreen() {} | 147 virtual void ToggleTouchscreen() {} |
153 }; | 148 }; |
154 | 149 |
155 } // namespace ash | 150 } // namespace ash |
156 | 151 |
157 #endif // ASH_COMMON_SHELL_DELEGATE_H_ | 152 #endif // ASH_COMMON_SHELL_DELEGATE_H_ |
OLD | NEW |