| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // Incognito windows are restricted for supervised users. | 69 // Incognito windows are restricted for supervised users. |
| 70 virtual bool IsIncognitoAllowed() const = 0; | 70 virtual bool IsIncognitoAllowed() const = 0; |
| 71 | 71 |
| 72 // Returns true if we're running in forced app mode. | 72 // Returns true if we're running in forced app mode. |
| 73 virtual bool IsRunningInForcedAppMode() const = 0; | 73 virtual bool IsRunningInForcedAppMode() const = 0; |
| 74 | 74 |
| 75 // Called before processing |Shell::Init()| so that the delegate | 75 // Called before processing |Shell::Init()| so that the delegate |
| 76 // can perform tasks necessary before the shell is initialized. | 76 // can perform tasks necessary before the shell is initialized. |
| 77 virtual void PreInit() = 0; | 77 virtual void PreInit() = 0; |
| 78 | 78 |
| 79 // Called at the beginninig of Shell destructor so that | 79 // Shuts down the environment. |
| 80 // delegate can use Shell instance to perform cleanup tasks. | 80 virtual void Shutdown() = 0; |
| 81 virtual void PreShutdown() = 0; | |
| 82 | 81 |
| 83 // Invoked when the user uses Ctrl-Shift-Q to close chrome. | 82 // Invoked when the user uses Ctrl-Shift-Q to close chrome. |
| 84 virtual void Exit() = 0; | 83 virtual void Exit() = 0; |
| 85 | 84 |
| 86 // Create a shell-specific keyboard::KeyboardControllerProxy | 85 // Create a shell-specific keyboard::KeyboardControllerProxy |
| 87 virtual keyboard::KeyboardControllerProxy* | 86 virtual keyboard::KeyboardControllerProxy* |
| 88 CreateKeyboardControllerProxy() = 0; | 87 CreateKeyboardControllerProxy() = 0; |
| 89 | 88 |
| 90 // Get the active browser context. This will get us the active profile | 89 // Get the active browser context. This will get us the active profile |
| 91 // in chrome. | 90 // in chrome. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // Creates a GPU support object. Shell takes ownership of the object. | 131 // Creates a GPU support object. Shell takes ownership of the object. |
| 133 virtual GPUSupport* CreateGPUSupport() = 0; | 132 virtual GPUSupport* CreateGPUSupport() = 0; |
| 134 | 133 |
| 135 // Get the product name. | 134 // Get the product name. |
| 136 virtual base::string16 GetProductName() const = 0; | 135 virtual base::string16 GetProductName() const = 0; |
| 137 }; | 136 }; |
| 138 | 137 |
| 139 } // namespace ash | 138 } // namespace ash |
| 140 | 139 |
| 141 #endif // ASH_SHELL_DELEGATE_H_ | 140 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |