| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 // Invoked when a user locks the screen. | 110 // Invoked when a user locks the screen. |
| 111 virtual void LockScreen() = 0; | 111 virtual void LockScreen() = 0; |
| 112 | 112 |
| 113 // Unlock the screen. Currently used only for tests. | 113 // Unlock the screen. Currently used only for tests. |
| 114 virtual void UnlockScreen() = 0; | 114 virtual void UnlockScreen() = 0; |
| 115 | 115 |
| 116 // Returns true if the screen is currently locked. | 116 // Returns true if the screen is currently locked. |
| 117 virtual bool IsScreenLocked() const = 0; | 117 virtual bool IsScreenLocked() const = 0; |
| 118 | 118 |
| 119 // Called before processing |Shell::Init()|; |
| 120 virtual void OnPreInit() = 0; |
| 121 |
| 119 // Shuts down the environment. | 122 // Shuts down the environment. |
| 120 virtual void Shutdown() = 0; | 123 virtual void Shutdown() = 0; |
| 121 | 124 |
| 122 // Invoked when the user uses Ctrl-Shift-Q to close chrome. | 125 // Invoked when the user uses Ctrl-Shift-Q to close chrome. |
| 123 virtual void Exit() = 0; | 126 virtual void Exit() = 0; |
| 124 | 127 |
| 125 // Invoked when the user uses Ctrl+T to open a new tab. | 128 // Invoked when the user uses Ctrl+T to open a new tab. |
| 126 virtual void NewTab() = 0; | 129 virtual void NewTab() = 0; |
| 127 | 130 |
| 128 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window. | 131 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window. |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 // value. | 246 // value. |
| 244 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0; | 247 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0; |
| 245 | 248 |
| 246 // Get the product name. | 249 // Get the product name. |
| 247 virtual string16 GetProductName() const = 0; | 250 virtual string16 GetProductName() const = 0; |
| 248 }; | 251 }; |
| 249 | 252 |
| 250 } // namespace ash | 253 } // namespace ash |
| 251 | 254 |
| 252 #endif // ASH_SHELL_DELEGATE_H_ | 255 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |