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 |
11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 | 14 |
15 class GURL; | 15 class GURL; |
16 | 16 |
17 namespace app_list { | 17 namespace app_list { |
18 class AppListPresenter; | 18 class AppListPresenter; |
19 class AppListViewDelegate; | 19 class AppListViewDelegate; |
20 } | 20 } |
21 | 21 |
22 namespace gfx { | 22 namespace gfx { |
23 class Image; | 23 class Image; |
24 } | 24 } |
25 | 25 |
26 namespace keyboard { | 26 namespace keyboard { |
27 class KeyboardUI; | 27 class KeyboardUI; |
28 } | 28 } |
29 | 29 |
| 30 namespace service_manager { |
| 31 class Connector; |
| 32 } |
| 33 |
30 namespace ui { | 34 namespace ui { |
31 class MenuModel; | 35 class MenuModel; |
32 } | 36 } |
33 | 37 |
34 namespace shell { | |
35 class Connector; | |
36 } | |
37 | |
38 namespace views { | 38 namespace views { |
39 class Widget; | 39 class Widget; |
40 } | 40 } |
41 | 41 |
42 namespace ash { | 42 namespace ash { |
43 | 43 |
44 class AccessibilityDelegate; | 44 class AccessibilityDelegate; |
45 class GPUSupport; | 45 class GPUSupport; |
46 class MediaDelegate; | 46 class MediaDelegate; |
47 class NewWindowDelegate; | 47 class NewWindowDelegate; |
48 class PaletteDelegate; | 48 class PaletteDelegate; |
49 class SessionStateDelegate; | 49 class SessionStateDelegate; |
50 class ShelfDelegate; | 50 class ShelfDelegate; |
51 class ShelfModel; | 51 class ShelfModel; |
52 class SystemTrayDelegate; | 52 class SystemTrayDelegate; |
53 struct ShelfItem; | 53 struct ShelfItem; |
54 class WallpaperDelegate; | 54 class WallpaperDelegate; |
55 class WmShelf; | 55 class WmShelf; |
56 class WmWindow; | 56 class WmWindow; |
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 ::shell::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 | 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 | 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. | 69 // restarted, typically due to logging in as a guest or logging out. |
70 virtual bool IsFirstRunAfterBoot() const = 0; | 70 virtual bool IsFirstRunAfterBoot() const = 0; |
71 | 71 |
72 // Returns true if multi-profiles feature is enabled. | 72 // Returns true if multi-profiles feature is enabled. |
73 virtual bool IsMultiProfilesEnabled() const = 0; | 73 virtual bool IsMultiProfilesEnabled() const = 0; |
74 | 74 |
75 // Returns true if incognito mode is allowed for the user. | 75 // Returns true if incognito mode is allowed for the user. |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 148 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
149 | 149 |
150 // Toggles the status of the touchpad / touchscreen on or off. | 150 // Toggles the status of the touchpad / touchscreen on or off. |
151 virtual void ToggleTouchpad() {} | 151 virtual void ToggleTouchpad() {} |
152 virtual void ToggleTouchscreen() {} | 152 virtual void ToggleTouchscreen() {} |
153 }; | 153 }; |
154 | 154 |
155 } // namespace ash | 155 } // namespace ash |
156 | 156 |
157 #endif // ASH_COMMON_SHELL_DELEGATE_H_ | 157 #endif // ASH_COMMON_SHELL_DELEGATE_H_ |
OLD | NEW |