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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 // Returns true if incognito mode is allowed for the user. | 76 // Returns true if incognito mode is allowed for the user. |
77 // Incognito windows are restricted for supervised users. | 77 // Incognito windows are restricted for supervised users. |
78 virtual bool IsIncognitoAllowed() const = 0; | 78 virtual bool IsIncognitoAllowed() const = 0; |
79 | 79 |
80 // Returns true if we're running in forced app mode. | 80 // Returns true if we're running in forced app mode. |
81 virtual bool IsRunningInForcedAppMode() const = 0; | 81 virtual bool IsRunningInForcedAppMode() const = 0; |
82 | 82 |
83 // Returns true if multi account is enabled. | 83 // Returns true if multi account is enabled. |
84 virtual bool IsMultiAccountEnabled() const = 0; | 84 virtual bool IsMultiAccountEnabled() const = 0; |
85 | 85 |
86 // Returns true if window must be maximized at the first run. | |
bartfab (slow)
2015/03/12 11:54:43
Nit: You should make it explicit that this applies
peletskyi
2015/03/18 13:28:09
Done.
| |
87 virtual bool IsFirstTimeMaximized() const = 0; | |
bartfab (slow)
2015/03/12 11:54:43
Nit: How about ForceMaximizeOnFirstRun()?
peletskyi
2015/03/18 13:28:09
Done.
| |
88 | |
86 // Called before processing |Shell::Init()| so that the delegate | 89 // Called before processing |Shell::Init()| so that the delegate |
87 // can perform tasks necessary before the shell is initialized. | 90 // can perform tasks necessary before the shell is initialized. |
88 virtual void PreInit() = 0; | 91 virtual void PreInit() = 0; |
89 | 92 |
90 // Called at the beginninig of Shell destructor so that | 93 // Called at the beginninig of Shell destructor so that |
91 // delegate can use Shell instance to perform cleanup tasks. | 94 // delegate can use Shell instance to perform cleanup tasks. |
92 virtual void PreShutdown() = 0; | 95 virtual void PreShutdown() = 0; |
93 | 96 |
94 // Invoked when the user uses Ctrl-Shift-Q to close chrome. | 97 // Invoked when the user uses Ctrl-Shift-Q to close chrome. |
95 virtual void Exit() = 0; | 98 virtual void Exit() = 0; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
148 // Creates a GPU support object. Shell takes ownership of the object. | 151 // Creates a GPU support object. Shell takes ownership of the object. |
149 virtual GPUSupport* CreateGPUSupport() = 0; | 152 virtual GPUSupport* CreateGPUSupport() = 0; |
150 | 153 |
151 // Get the product name. | 154 // Get the product name. |
152 virtual base::string16 GetProductName() const = 0; | 155 virtual base::string16 GetProductName() const = 0; |
153 }; | 156 }; |
154 | 157 |
155 } // namespace ash | 158 } // namespace ash |
156 | 159 |
157 #endif // ASH_SHELL_DELEGATE_H_ | 160 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |