| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 public: | 57 public: |
| 58 // The Shell owns the delegate. | 58 // The Shell owns the delegate. |
| 59 virtual ~ShellDelegate() {} | 59 virtual ~ShellDelegate() {} |
| 60 | 60 |
| 61 // Returns true if user has logged in. | 61 // Returns true if user has logged in. |
| 62 virtual bool IsUserLoggedIn() = 0; | 62 virtual bool IsUserLoggedIn() = 0; |
| 63 | 63 |
| 64 // Returns true if we're logged in and browser has been started | 64 // Returns true if we're logged in and browser has been started |
| 65 virtual bool IsSessionStarted() = 0; | 65 virtual bool IsSessionStarted() = 0; |
| 66 | 66 |
| 67 // Returns true if this is the first time that the shell has been run after |
| 68 // the system has booted. false is returned after the shell has been |
| 69 // restarted, typically due to logging in as a guest or logging out. |
| 70 virtual bool IsFirstRunAfterBoot() = 0; |
| 71 |
| 67 // Invoked when a user locks the screen. | 72 // Invoked when a user locks the screen. |
| 68 virtual void LockScreen() = 0; | 73 virtual void LockScreen() = 0; |
| 69 | 74 |
| 70 // Unlock the screen. Currently used only for tests. | 75 // Unlock the screen. Currently used only for tests. |
| 71 virtual void UnlockScreen() = 0; | 76 virtual void UnlockScreen() = 0; |
| 72 | 77 |
| 73 // Returns true if the screen is currently locked. | 78 // Returns true if the screen is currently locked. |
| 74 virtual bool IsScreenLocked() const = 0; | 79 virtual bool IsScreenLocked() const = 0; |
| 75 | 80 |
| 76 // Shuts down the environment. | 81 // Shuts down the environment. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 160 |
| 156 // Produces l10n-ed text of remaining time, e.g.: "13 mins left" or | 161 // Produces l10n-ed text of remaining time, e.g.: "13 mins left" or |
| 157 // "13 Minuten übrig". | 162 // "13 Minuten übrig". |
| 158 // Used, for example, to display the remaining battery life. | 163 // Used, for example, to display the remaining battery life. |
| 159 virtual string16 GetTimeRemainingString(base::TimeDelta delta) = 0; | 164 virtual string16 GetTimeRemainingString(base::TimeDelta delta) = 0; |
| 160 }; | 165 }; |
| 161 | 166 |
| 162 } // namespace ash | 167 } // namespace ash |
| 163 | 168 |
| 164 #endif // ASH_SHELL_DELEGATE_H_ | 169 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |