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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
104 // Adds or removes virtual keyboard state observer. | 104 // Adds or removes virtual keyboard state observer. |
105 virtual void AddVirtualKeyboardStateObserver( | 105 virtual void AddVirtualKeyboardStateObserver( |
106 VirtualKeyboardStateObserver* observer) = 0; | 106 VirtualKeyboardStateObserver* observer) = 0; |
107 virtual void RemoveVirtualKeyboardStateObserver( | 107 virtual void RemoveVirtualKeyboardStateObserver( |
108 VirtualKeyboardStateObserver* observer) = 0; | 108 VirtualKeyboardStateObserver* observer) = 0; |
109 | 109 |
110 // Get the active browser context. This will get us the active profile | 110 // Get the active browser context. This will get us the active profile |
111 // in chrome. | 111 // in chrome. |
112 virtual content::BrowserContext* GetActiveBrowserContext() = 0; | 112 virtual content::BrowserContext* GetActiveBrowserContext() = 0; |
113 | 113 |
114 // Invoked to create an AppListViewDelegate. Shell takes the ownership of | 114 // Invoked to create an AppListViewDelegate. Shell takes the ownership of |
James Cook
2014/09/18 23:29:55
nit: Is "Shell takes ownership" still correct?
tapted
2014/09/19 00:49:01
good catch - thought I got all of these :). Change
| |
115 // the created delegate. | 115 // the created delegate. |
116 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; | 116 virtual app_list::AppListViewDelegate* GetAppListViewDelegate() = 0; |
117 | 117 |
118 // Creates a new ShelfDelegate. Shell takes ownership of the returned | 118 // Creates a new ShelfDelegate. Shell takes ownership of the returned |
119 // value. | 119 // value. |
120 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; | 120 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; |
121 | 121 |
122 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 122 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
123 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; | 123 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; |
124 | 124 |
125 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. | 125 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. |
126 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; | 126 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; |
(...skipping 21 matching lines...) Expand all Loading... | |
148 // Creates a GPU support object. Shell takes ownership of the object. | 148 // Creates a GPU support object. Shell takes ownership of the object. |
149 virtual GPUSupport* CreateGPUSupport() = 0; | 149 virtual GPUSupport* CreateGPUSupport() = 0; |
150 | 150 |
151 // Get the product name. | 151 // Get the product name. |
152 virtual base::string16 GetProductName() const = 0; | 152 virtual base::string16 GetProductName() const = 0; |
153 }; | 153 }; |
154 | 154 |
155 } // namespace ash | 155 } // namespace ash |
156 | 156 |
157 #endif // ASH_SHELL_DELEGATE_H_ | 157 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |