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_SHELL_DELEGATE_H_ | 5 #ifndef ASH_SHELL_DELEGATE_H_ |
6 #define ASH_SHELL_DELEGATE_H_ | 6 #define ASH_SHELL_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 class CapsLockDelegate; | 46 class CapsLockDelegate; |
47 class MediaDelegate; | 47 class MediaDelegate; |
48 class NewWindowDelegate; | 48 class NewWindowDelegate; |
49 class WindowTreeHostFactory; | 49 class WindowTreeHostFactory; |
50 class SessionStateDelegate; | 50 class SessionStateDelegate; |
51 class ShelfDelegate; | 51 class ShelfDelegate; |
52 class ShelfItemDelegate; | 52 class ShelfItemDelegate; |
53 class ShelfModel; | 53 class ShelfModel; |
54 class SystemTrayDelegate; | 54 class SystemTrayDelegate; |
55 class UserWallpaperDelegate; | 55 class UserWallpaperDelegate; |
56 struct LauncherItem; | 56 struct ShelfItem; |
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 true if this is the first time that the shell has been run after | 64 // Returns true if this is the first time that the shell has been run after |
65 // the system has booted. false is returned after the shell has been | 65 // the system has booted. false is returned after the shell has been |
66 // restarted, typically due to logging in as a guest or logging out. | 66 // restarted, typically due to logging in as a guest or logging out. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; | 121 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; |
122 | 122 |
123 // Creates a media delegate. Shell takes ownership of the delegate. | 123 // Creates a media delegate. Shell takes ownership of the delegate. |
124 virtual MediaDelegate* CreateMediaDelegate() = 0; | 124 virtual MediaDelegate* CreateMediaDelegate() = 0; |
125 | 125 |
126 // Creates a user action client. Shell takes ownership of the object. | 126 // Creates a user action client. Shell takes ownership of the object. |
127 virtual aura::client::UserActionClient* CreateUserActionClient() = 0; | 127 virtual aura::client::UserActionClient* CreateUserActionClient() = 0; |
128 | 128 |
129 // Creates a menu model of the context for the |root_window|. | 129 // Creates a menu model of the context for the |root_window|. |
130 // When a ContextMenu is used for an item created by ShelfWindowWatcher, | 130 // When a ContextMenu is used for an item created by ShelfWindowWatcher, |
131 // passes its ShelfItemDelegate and LauncherItem. | 131 // passes its ShelfItemDelegate and ShelfItem. |
132 virtual ui::MenuModel* CreateContextMenu( | 132 virtual ui::MenuModel* CreateContextMenu( |
133 aura::Window* root_window, | 133 aura::Window* root_window, |
134 ash::ShelfItemDelegate* item_delegate, | 134 ash::ShelfItemDelegate* item_delegate, |
135 ash::LauncherItem* item) = 0; | 135 ash::ShelfItem* item) = 0; |
136 | 136 |
137 // Creates a root window host factory. Shell takes ownership of the returned | 137 // Creates a root window host factory. Shell takes ownership of the returned |
138 // value. | 138 // value. |
139 virtual WindowTreeHostFactory* CreateWindowTreeHostFactory() = 0; | 139 virtual WindowTreeHostFactory* CreateWindowTreeHostFactory() = 0; |
140 | 140 |
141 // Creates a GPU support object. Shell takes ownership of the object. | 141 // Creates a GPU support object. Shell takes ownership of the object. |
142 virtual GPUSupport* CreateGPUSupport() = 0; | 142 virtual GPUSupport* CreateGPUSupport() = 0; |
143 | 143 |
144 // Get the product name. | 144 // Get the product name. |
145 virtual base::string16 GetProductName() const = 0; | 145 virtual base::string16 GetProductName() const = 0; |
146 }; | 146 }; |
147 | 147 |
148 } // namespace ash | 148 } // namespace ash |
149 | 149 |
150 #endif // ASH_SHELL_DELEGATE_H_ | 150 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |