| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // Called before processing |Shell::Init()| so that the delegate | 122 // Called before processing |Shell::Init()| so that the delegate |
| 123 // can perform tasks necessary before the shell is initialized. | 123 // can perform tasks necessary before the shell is initialized. |
| 124 virtual void PreInit() = 0; | 124 virtual void PreInit() = 0; |
| 125 | 125 |
| 126 // Shuts down the environment. | 126 // Shuts down the environment. |
| 127 virtual void Shutdown() = 0; | 127 virtual void Shutdown() = 0; |
| 128 | 128 |
| 129 // Invoked when the user uses Ctrl-Shift-Q to close chrome. | 129 // Invoked when the user uses Ctrl-Shift-Q to close chrome. |
| 130 virtual void Exit() = 0; | 130 virtual void Exit() = 0; |
| 131 | 131 |
| 132 // Invoked when the user uses Shift+F4 to toggle the window fullscreen state. | |
| 133 virtual void ToggleFullscreen() = 0; | |
| 134 | |
| 135 // Create a shell-specific keyboard::KeyboardControllerProxy | 132 // Create a shell-specific keyboard::KeyboardControllerProxy |
| 136 virtual keyboard::KeyboardControllerProxy* | 133 virtual keyboard::KeyboardControllerProxy* |
| 137 CreateKeyboardControllerProxy() = 0; | 134 CreateKeyboardControllerProxy() = 0; |
| 138 | 135 |
| 139 // Get the current browser context. This will get us the current profile. | 136 // Get the current browser context. This will get us the current profile. |
| 140 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; | 137 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; |
| 141 | 138 |
| 142 // Invoked to create an AppListViewDelegate. Shell takes the ownership of | 139 // Invoked to create an AppListViewDelegate. Shell takes the ownership of |
| 143 // the created delegate. | 140 // the created delegate. |
| 144 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; | 141 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // value. | 185 // value. |
| 189 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0; | 186 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0; |
| 190 | 187 |
| 191 // Get the product name. | 188 // Get the product name. |
| 192 virtual base::string16 GetProductName() const = 0; | 189 virtual base::string16 GetProductName() const = 0; |
| 193 }; | 190 }; |
| 194 | 191 |
| 195 } // namespace ash | 192 } // namespace ash |
| 196 | 193 |
| 197 #endif // ASH_SHELL_DELEGATE_H_ | 194 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |