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 13 matching lines...) Expand all Loading... |
24 } | 24 } |
25 | 25 |
26 namespace keyboard { | 26 namespace keyboard { |
27 class KeyboardUI; | 27 class KeyboardUI; |
28 } | 28 } |
29 | 29 |
30 namespace ui { | 30 namespace ui { |
31 class MenuModel; | 31 class MenuModel; |
32 } | 32 } |
33 | 33 |
| 34 namespace shell { |
| 35 class Connector; |
| 36 } |
| 37 |
34 namespace views { | 38 namespace views { |
35 class Widget; | 39 class Widget; |
36 } | 40 } |
37 | 41 |
38 namespace ash { | 42 namespace ash { |
39 | 43 |
40 class AccessibilityDelegate; | 44 class AccessibilityDelegate; |
41 class GPUSupport; | 45 class GPUSupport; |
42 class MediaDelegate; | 46 class MediaDelegate; |
43 class NewWindowDelegate; | 47 class NewWindowDelegate; |
44 class PaletteDelegate; | 48 class PaletteDelegate; |
45 class SessionStateDelegate; | 49 class SessionStateDelegate; |
46 class ShelfDelegate; | 50 class ShelfDelegate; |
47 class ShelfModel; | 51 class ShelfModel; |
48 class SystemTrayDelegate; | 52 class SystemTrayDelegate; |
49 struct ShelfItem; | 53 struct ShelfItem; |
50 class WallpaperDelegate; | 54 class WallpaperDelegate; |
51 class WmShelf; | 55 class WmShelf; |
52 class WmWindow; | 56 class WmWindow; |
53 | 57 |
54 // Delegate of the Shell. | 58 // Delegate of the Shell. |
55 class ASH_EXPORT ShellDelegate { | 59 class ASH_EXPORT ShellDelegate { |
56 public: | 60 public: |
57 // The Shell owns the delegate. | 61 // The Shell owns the delegate. |
58 virtual ~ShellDelegate() {} | 62 virtual ~ShellDelegate() {} |
59 | 63 |
| 64 // Returns the connector for the mojo service manager. Returns null in tests. |
| 65 virtual ::shell::Connector* GetShellConnector() const = 0; |
| 66 |
60 // Returns true if this is the first time that the shell has been run after | 67 // Returns true if this is the first time that the shell has been run after |
61 // the system has booted. false is returned after the shell has been | 68 // the system has booted. false is returned after the shell has been |
62 // restarted, typically due to logging in as a guest or logging out. | 69 // restarted, typically due to logging in as a guest or logging out. |
63 virtual bool IsFirstRunAfterBoot() const = 0; | 70 virtual bool IsFirstRunAfterBoot() const = 0; |
64 | 71 |
65 // Returns true if multi-profiles feature is enabled. | 72 // Returns true if multi-profiles feature is enabled. |
66 virtual bool IsMultiProfilesEnabled() const = 0; | 73 virtual bool IsMultiProfilesEnabled() const = 0; |
67 | 74 |
68 // Returns true if incognito mode is allowed for the user. | 75 // Returns true if incognito mode is allowed for the user. |
69 // Incognito windows are restricted for supervised users. | 76 // Incognito windows are restricted for supervised users. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 148 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
142 | 149 |
143 // Toggles the status of the touchpad / touchscreen on or off. | 150 // Toggles the status of the touchpad / touchscreen on or off. |
144 virtual void ToggleTouchpad() {} | 151 virtual void ToggleTouchpad() {} |
145 virtual void ToggleTouchscreen() {} | 152 virtual void ToggleTouchscreen() {} |
146 }; | 153 }; |
147 | 154 |
148 } // namespace ash | 155 } // namespace ash |
149 | 156 |
150 #endif // ASH_COMMON_SHELL_DELEGATE_H_ | 157 #endif // ASH_COMMON_SHELL_DELEGATE_H_ |
OLD | NEW |