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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 namespace keyboard { | 36 namespace keyboard { |
37 class KeyboardControllerProxy; | 37 class KeyboardControllerProxy; |
38 } | 38 } |
39 | 39 |
40 namespace ash { | 40 namespace ash { |
41 | 41 |
42 class AccessibilityDelegate; | 42 class AccessibilityDelegate; |
43 class MediaDelegate; | 43 class MediaDelegate; |
44 class NewWindowDelegate; | 44 class NewWindowDelegate; |
45 class WindowTreeHostFactory; | |
46 class SessionStateDelegate; | 45 class SessionStateDelegate; |
47 class ShelfDelegate; | 46 class ShelfDelegate; |
48 class ShelfItemDelegate; | 47 class ShelfItemDelegate; |
49 class ShelfModel; | 48 class ShelfModel; |
50 class SystemTrayDelegate; | 49 class SystemTrayDelegate; |
51 class UserWallpaperDelegate; | 50 class UserWallpaperDelegate; |
52 struct ShelfItem; | 51 struct ShelfItem; |
53 | 52 |
54 // Delegate of the Shell. | 53 // Delegate of the Shell. |
55 class ASH_EXPORT ShellDelegate { | 54 class ASH_EXPORT ShellDelegate { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 virtual MediaDelegate* CreateMediaDelegate() = 0; | 117 virtual MediaDelegate* CreateMediaDelegate() = 0; |
119 | 118 |
120 // Creates a menu model of the context for the |root_window|. | 119 // Creates a menu model of the context for the |root_window|. |
121 // When a ContextMenu is used for an item created by ShelfWindowWatcher, | 120 // When a ContextMenu is used for an item created by ShelfWindowWatcher, |
122 // passes its ShelfItemDelegate and ShelfItem. | 121 // passes its ShelfItemDelegate and ShelfItem. |
123 virtual ui::MenuModel* CreateContextMenu( | 122 virtual ui::MenuModel* CreateContextMenu( |
124 aura::Window* root_window, | 123 aura::Window* root_window, |
125 ash::ShelfItemDelegate* item_delegate, | 124 ash::ShelfItemDelegate* item_delegate, |
126 ash::ShelfItem* item) = 0; | 125 ash::ShelfItem* item) = 0; |
127 | 126 |
128 // Creates a root window host factory. Shell takes ownership of the returned | |
129 // value. | |
130 virtual WindowTreeHostFactory* CreateWindowTreeHostFactory() = 0; | |
131 | |
132 // Creates a GPU support object. Shell takes ownership of the object. | 127 // Creates a GPU support object. Shell takes ownership of the object. |
133 virtual GPUSupport* CreateGPUSupport() = 0; | 128 virtual GPUSupport* CreateGPUSupport() = 0; |
134 | 129 |
135 // Get the product name. | 130 // Get the product name. |
136 virtual base::string16 GetProductName() const = 0; | 131 virtual base::string16 GetProductName() const = 0; |
137 }; | 132 }; |
138 | 133 |
139 } // namespace ash | 134 } // namespace ash |
140 | 135 |
141 #endif // ASH_SHELL_DELEGATE_H_ | 136 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |