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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // Returns true if multi-profiles feature is enabled. | 74 // Returns true if multi-profiles feature is enabled. |
75 virtual bool IsMultiProfilesEnabled() const = 0; | 75 virtual bool IsMultiProfilesEnabled() const = 0; |
76 | 76 |
77 // Returns true if incognito mode is allowed for the user. | 77 // Returns true if incognito mode is allowed for the user. |
78 // Incognito windows are restricted for supervised users. | 78 // Incognito windows are restricted for supervised users. |
79 virtual bool IsIncognitoAllowed() const = 0; | 79 virtual bool IsIncognitoAllowed() const = 0; |
80 | 80 |
81 // Returns true if we're running in forced app mode. | 81 // Returns true if we're running in forced app mode. |
82 virtual bool IsRunningInForcedAppMode() const = 0; | 82 virtual bool IsRunningInForcedAppMode() const = 0; |
83 | 83 |
| 84 // Returns true if multi account is enabled. |
| 85 virtual bool IsMultiAccountEnabled() const = 0; |
| 86 |
84 // Called before processing |Shell::Init()| so that the delegate | 87 // Called before processing |Shell::Init()| so that the delegate |
85 // can perform tasks necessary before the shell is initialized. | 88 // can perform tasks necessary before the shell is initialized. |
86 virtual void PreInit() = 0; | 89 virtual void PreInit() = 0; |
87 | 90 |
88 // Called at the beginninig of Shell destructor so that | 91 // Called at the beginninig of Shell destructor so that |
89 // delegate can use Shell instance to perform cleanup tasks. | 92 // delegate can use Shell instance to perform cleanup tasks. |
90 virtual void PreShutdown() = 0; | 93 virtual void PreShutdown() = 0; |
91 | 94 |
92 // Invoked when the user uses Ctrl-Shift-Q to close chrome. | 95 // Invoked when the user uses Ctrl-Shift-Q to close chrome. |
93 virtual void Exit() = 0; | 96 virtual void Exit() = 0; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 // Creates a GPU support object. Shell takes ownership of the object. | 153 // Creates a GPU support object. Shell takes ownership of the object. |
151 virtual GPUSupport* CreateGPUSupport() = 0; | 154 virtual GPUSupport* CreateGPUSupport() = 0; |
152 | 155 |
153 // Get the product name. | 156 // Get the product name. |
154 virtual base::string16 GetProductName() const = 0; | 157 virtual base::string16 GetProductName() const = 0; |
155 }; | 158 }; |
156 | 159 |
157 } // namespace ash | 160 } // namespace ash |
158 | 161 |
159 #endif // ASH_SHELL_DELEGATE_H_ | 162 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |