| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // Delegate of the Shell. | 52 // Delegate of the Shell. |
| 53 class ASH_EXPORT ShellDelegate { | 53 class ASH_EXPORT ShellDelegate { |
| 54 public: | 54 public: |
| 55 // The Shell owns the delegate. | 55 // The Shell owns the delegate. |
| 56 virtual ~ShellDelegate() {} | 56 virtual ~ShellDelegate() {} |
| 57 | 57 |
| 58 // Returns true if user has logged in. | 58 // Returns true if user has logged in. |
| 59 virtual bool IsUserLoggedIn() = 0; | 59 virtual bool IsUserLoggedIn() = 0; |
| 60 | 60 |
| 61 // Returns true if we're logged in and browser has been started | 61 // Returns true if we're logged in and browser has been started |
| 62 virtual bool IsSessionStarted() = 0; | 62 virtual bool IsSessionStarted() const = 0; |
| 63 | 63 |
| 64 // Invoked when a user locks the screen. | 64 // Invoked when a user locks the screen. |
| 65 virtual void LockScreen() = 0; | 65 virtual void LockScreen() = 0; |
| 66 | 66 |
| 67 // Unlock the screen. Currently used only for tests. | 67 // Unlock the screen. Currently used only for tests. |
| 68 virtual void UnlockScreen() = 0; | 68 virtual void UnlockScreen() = 0; |
| 69 | 69 |
| 70 // Returns true if the screen is currently locked. | 70 // Returns true if the screen is currently locked. |
| 71 virtual bool IsScreenLocked() const = 0; | 71 virtual bool IsScreenLocked() const = 0; |
| 72 | 72 |
| 73 // Returns true if status area should be made initially visible. |
| 74 virtual bool IsStatusAreaInitiallyVisible() const = 0; |
| 75 |
| 73 // Shuts down the environment. | 76 // Shuts down the environment. |
| 74 virtual void Shutdown() = 0; | 77 virtual void Shutdown() = 0; |
| 75 | 78 |
| 76 // Invoked when the user uses Ctrl-Shift-Q to close chrome. | 79 // Invoked when the user uses Ctrl-Shift-Q to close chrome. |
| 77 virtual void Exit() = 0; | 80 virtual void Exit() = 0; |
| 78 | 81 |
| 79 // Invoked when the user uses Ctrl+T to open a new tab. | 82 // Invoked when the user uses Ctrl+T to open a new tab. |
| 80 virtual void NewTab() = 0; | 83 virtual void NewTab() = 0; |
| 81 | 84 |
| 82 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window. | 85 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 // Opens the feedback page for "Report Issue". | 138 // Opens the feedback page for "Report Issue". |
| 136 virtual void OpenFeedbackPage() = 0; | 139 virtual void OpenFeedbackPage() = 0; |
| 137 | 140 |
| 138 // Records that the user performed an action. | 141 // Records that the user performed an action. |
| 139 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; | 142 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; |
| 140 }; | 143 }; |
| 141 | 144 |
| 142 } // namespace ash | 145 } // namespace ash |
| 143 | 146 |
| 144 #endif // ASH_SHELL_DELEGATE_H_ | 147 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |