| 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 the first window shown on first run should be |
| 87 // unconditionally maximized, overriding the heuristic that normally chooses |
| 88 // the window size. |
| 89 virtual bool ForceMaximizeOnFirstRun() const = 0; |
| 90 |
| 86 // Called before processing |Shell::Init()| so that the delegate | 91 // Called before processing |Shell::Init()| so that the delegate |
| 87 // can perform tasks necessary before the shell is initialized. | 92 // can perform tasks necessary before the shell is initialized. |
| 88 virtual void PreInit() = 0; | 93 virtual void PreInit() = 0; |
| 89 | 94 |
| 90 // Called at the beginninig of Shell destructor so that | 95 // Called at the beginninig of Shell destructor so that |
| 91 // delegate can use Shell instance to perform cleanup tasks. | 96 // delegate can use Shell instance to perform cleanup tasks. |
| 92 virtual void PreShutdown() = 0; | 97 virtual void PreShutdown() = 0; |
| 93 | 98 |
| 94 // Invoked when the user uses Ctrl-Shift-Q to close chrome. | 99 // Invoked when the user uses Ctrl-Shift-Q to close chrome. |
| 95 virtual void Exit() = 0; | 100 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. | 153 // Creates a GPU support object. Shell takes ownership of the object. |
| 149 virtual GPUSupport* CreateGPUSupport() = 0; | 154 virtual GPUSupport* CreateGPUSupport() = 0; |
| 150 | 155 |
| 151 // Get the product name. | 156 // Get the product name. |
| 152 virtual base::string16 GetProductName() const = 0; | 157 virtual base::string16 GetProductName() const = 0; |
| 153 }; | 158 }; |
| 154 | 159 |
| 155 } // namespace ash | 160 } // namespace ash |
| 156 | 161 |
| 157 #endif // ASH_SHELL_DELEGATE_H_ | 162 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |