| 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 <string> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "ash/magnifier/magnifier_constants.h" | 11 #include "ash/magnifier/magnifier_constants.h" |
| 12 #include "ash/shell.h" | 12 #include "ash/shell.h" |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "base/time.h" | 15 #include "base/time.h" |
| 16 | 16 |
| 17 namespace app_list { | 17 namespace app_list { |
| 18 class AppListViewDelegate; | 18 class AppListViewDelegate; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 virtual bool IsUserLoggedIn() const = 0; | 83 virtual bool IsUserLoggedIn() const = 0; |
| 84 | 84 |
| 85 // Returns true if we're logged in and browser has been started | 85 // Returns true if we're logged in and browser has been started |
| 86 virtual bool IsSessionStarted() const = 0; | 86 virtual bool IsSessionStarted() const = 0; |
| 87 | 87 |
| 88 // Returns true if this is the first time that the shell has been run after | 88 // Returns true if this is the first time that the shell has been run after |
| 89 // the system has booted. false is returned after the shell has been | 89 // the system has booted. false is returned after the shell has been |
| 90 // restarted, typically due to logging in as a guest or logging out. | 90 // restarted, typically due to logging in as a guest or logging out. |
| 91 virtual bool IsFirstRunAfterBoot() const = 0; | 91 virtual bool IsFirstRunAfterBoot() const = 0; |
| 92 | 92 |
| 93 // Returns true if we're running in forced app mode. |
| 94 virtual bool IsRunningInForcedAppMode() const = 0; |
| 95 |
| 93 // Returns true if a user is logged in whose session can be locked (i.e. the | 96 // Returns true if a user is logged in whose session can be locked (i.e. the |
| 94 // user has a password with which to unlock the session). | 97 // user has a password with which to unlock the session). |
| 95 virtual bool CanLockScreen() const = 0; | 98 virtual bool CanLockScreen() const = 0; |
| 96 | 99 |
| 97 // Invoked when a user locks the screen. | 100 // Invoked when a user locks the screen. |
| 98 virtual void LockScreen() = 0; | 101 virtual void LockScreen() = 0; |
| 99 | 102 |
| 100 // Unlock the screen. Currently used only for tests. | 103 // Unlock the screen. Currently used only for tests. |
| 101 virtual void UnlockScreen() = 0; | 104 virtual void UnlockScreen() = 0; |
| 102 | 105 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 // value. | 233 // value. |
| 231 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0; | 234 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0; |
| 232 | 235 |
| 233 // Get the product name. | 236 // Get the product name. |
| 234 virtual string16 GetProductName() const = 0; | 237 virtual string16 GetProductName() const = 0; |
| 235 }; | 238 }; |
| 236 | 239 |
| 237 } // namespace ash | 240 } // namespace ash |
| 238 | 241 |
| 239 #endif // ASH_SHELL_DELEGATE_H_ | 242 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |