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 // Shuts down the environment. | 79 // Called at the beginninig of Shell destructor so that |
80 virtual void Shutdown() = 0; | 80 // delegate can use Shell instance to perform cleanup tasks. |
| 81 virtual void PreShutdown() = 0; |
81 | 82 |
82 // Invoked when the user uses Ctrl-Shift-Q to close chrome. | 83 // Invoked when the user uses Ctrl-Shift-Q to close chrome. |
83 virtual void Exit() = 0; | 84 virtual void Exit() = 0; |
84 | 85 |
85 // Create a shell-specific keyboard::KeyboardControllerProxy | 86 // Create a shell-specific keyboard::KeyboardControllerProxy |
86 virtual keyboard::KeyboardControllerProxy* | 87 virtual keyboard::KeyboardControllerProxy* |
87 CreateKeyboardControllerProxy() = 0; | 88 CreateKeyboardControllerProxy() = 0; |
88 | 89 |
89 // Get the active browser context. This will get us the active profile | 90 // Get the active browser context. This will get us the active profile |
90 // in chrome. | 91 // in chrome. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // Creates a GPU support object. Shell takes ownership of the object. | 132 // Creates a GPU support object. Shell takes ownership of the object. |
132 virtual GPUSupport* CreateGPUSupport() = 0; | 133 virtual GPUSupport* CreateGPUSupport() = 0; |
133 | 134 |
134 // Get the product name. | 135 // Get the product name. |
135 virtual base::string16 GetProductName() const = 0; | 136 virtual base::string16 GetProductName() const = 0; |
136 }; | 137 }; |
137 | 138 |
138 } // namespace ash | 139 } // namespace ash |
139 | 140 |
140 #endif // ASH_SHELL_DELEGATE_H_ | 141 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |