| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // Returns true if multi-profiles feature is enabled. | 65 // Returns true if multi-profiles feature is enabled. |
| 66 virtual bool IsMultiProfilesEnabled() const = 0; | 66 virtual bool IsMultiProfilesEnabled() const = 0; |
| 67 | 67 |
| 68 // Returns true if incognito mode is allowed for the user. | 68 // Returns true if incognito mode is allowed for the user. |
| 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 // Returns true if new account management is enabled. |
| 76 virtual bool IsAccountManagementEnabled() const = 0; |
| 77 |
| 75 // Called before processing |Shell::Init()| so that the delegate | 78 // Called before processing |Shell::Init()| so that the delegate |
| 76 // can perform tasks necessary before the shell is initialized. | 79 // can perform tasks necessary before the shell is initialized. |
| 77 virtual void PreInit() = 0; | 80 virtual void PreInit() = 0; |
| 78 | 81 |
| 79 // Shuts down the environment. | 82 // Shuts down the environment. |
| 80 virtual void Shutdown() = 0; | 83 virtual void Shutdown() = 0; |
| 81 | 84 |
| 82 // Invoked when the user uses Ctrl-Shift-Q to close chrome. | 85 // Invoked when the user uses Ctrl-Shift-Q to close chrome. |
| 83 virtual void Exit() = 0; | 86 virtual void Exit() = 0; |
| 84 | 87 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // Creates a GPU support object. Shell takes ownership of the object. | 134 // Creates a GPU support object. Shell takes ownership of the object. |
| 132 virtual GPUSupport* CreateGPUSupport() = 0; | 135 virtual GPUSupport* CreateGPUSupport() = 0; |
| 133 | 136 |
| 134 // Get the product name. | 137 // Get the product name. |
| 135 virtual base::string16 GetProductName() const = 0; | 138 virtual base::string16 GetProductName() const = 0; |
| 136 }; | 139 }; |
| 137 | 140 |
| 138 } // namespace ash | 141 } // namespace ash |
| 139 | 142 |
| 140 #endif // ASH_SHELL_DELEGATE_H_ | 143 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |