| 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" |
| 11 #include "ash/shell.h" | 11 #include "ash/shell.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 namespace app_list { | 15 namespace app_list { |
| 16 class AppListViewDelegate; | 16 class AppListViewDelegate; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace aura { | 19 namespace aura { |
| 20 class RootWindow; | 20 class RootWindow; |
| 21 class Window; | 21 class Window; |
| 22 namespace client { | |
| 23 class UserActionClient; | |
| 24 } | |
| 25 } | 22 } |
| 26 | 23 |
| 27 namespace content { | 24 namespace content { |
| 28 class BrowserContext; | 25 class BrowserContext; |
| 29 } | 26 } |
| 30 | 27 |
| 31 namespace ui { | 28 namespace ui { |
| 32 class MenuModel; | 29 class MenuModel; |
| 33 } | 30 } |
| 34 | 31 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 113 |
| 117 // Creates a accessibility delegate. Shell takes ownership of the delegate. | 114 // Creates a accessibility delegate. Shell takes ownership of the delegate. |
| 118 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; | 115 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; |
| 119 | 116 |
| 120 // Creates an application delegate. Shell takes ownership of the delegate. | 117 // Creates an application delegate. Shell takes ownership of the delegate. |
| 121 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; | 118 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; |
| 122 | 119 |
| 123 // Creates a media delegate. Shell takes ownership of the delegate. | 120 // Creates a media delegate. Shell takes ownership of the delegate. |
| 124 virtual MediaDelegate* CreateMediaDelegate() = 0; | 121 virtual MediaDelegate* CreateMediaDelegate() = 0; |
| 125 | 122 |
| 126 // Creates a user action client. Shell takes ownership of the object. | |
| 127 virtual aura::client::UserActionClient* CreateUserActionClient() = 0; | |
| 128 | |
| 129 // Creates a menu model of the context for the |root_window|. | 123 // Creates a menu model of the context for the |root_window|. |
| 130 // When a ContextMenu is used for an item created by ShelfWindowWatcher, | 124 // When a ContextMenu is used for an item created by ShelfWindowWatcher, |
| 131 // passes its ShelfItemDelegate and ShelfItem. | 125 // passes its ShelfItemDelegate and ShelfItem. |
| 132 virtual ui::MenuModel* CreateContextMenu( | 126 virtual ui::MenuModel* CreateContextMenu( |
| 133 aura::Window* root_window, | 127 aura::Window* root_window, |
| 134 ash::ShelfItemDelegate* item_delegate, | 128 ash::ShelfItemDelegate* item_delegate, |
| 135 ash::ShelfItem* item) = 0; | 129 ash::ShelfItem* item) = 0; |
| 136 | 130 |
| 137 // Creates a root window host factory. Shell takes ownership of the returned | 131 // Creates a root window host factory. Shell takes ownership of the returned |
| 138 // value. | 132 // value. |
| 139 virtual WindowTreeHostFactory* CreateWindowTreeHostFactory() = 0; | 133 virtual WindowTreeHostFactory* CreateWindowTreeHostFactory() = 0; |
| 140 | 134 |
| 141 // Creates a GPU support object. Shell takes ownership of the object. | 135 // Creates a GPU support object. Shell takes ownership of the object. |
| 142 virtual GPUSupport* CreateGPUSupport() = 0; | 136 virtual GPUSupport* CreateGPUSupport() = 0; |
| 143 | 137 |
| 144 // Get the product name. | 138 // Get the product name. |
| 145 virtual base::string16 GetProductName() const = 0; | 139 virtual base::string16 GetProductName() const = 0; |
| 146 }; | 140 }; |
| 147 | 141 |
| 148 } // namespace ash | 142 } // namespace ash |
| 149 | 143 |
| 150 #endif // ASH_SHELL_DELEGATE_H_ | 144 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |