Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(602)

Side by Side Diff: ash/shell_delegate.h

Issue 14139003: Chrome OS multi-profiles backend and UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hacks: reference issues Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual bool IsSessionStarted() const = 0; 97 virtual bool IsSessionStarted() const = 0;
98 98
99 // Returns true if we're logged in as guest. 99 // Returns true if we're logged in as guest.
100 virtual bool IsGuestSession() const = 0; 100 virtual bool IsGuestSession() const = 0;
101 101
102 // Returns true if this is the first time that the shell has been run after 102 // Returns true if this is the first time that the shell has been run after
103 // the system has booted. false is returned after the shell has been 103 // the system has booted. false is returned after the shell has been
104 // restarted, typically due to logging in as a guest or logging out. 104 // restarted, typically due to logging in as a guest or logging out.
105 virtual bool IsFirstRunAfterBoot() const = 0; 105 virtual bool IsFirstRunAfterBoot() const = 0;
106 106
107 // Returns true if multi-profiles feature is enabled.
108 virtual bool IsMultiProfilesEnabled() const = 0;
109
107 // Returns true if we're running in forced app mode. 110 // Returns true if we're running in forced app mode.
108 virtual bool IsRunningInForcedAppMode() const = 0; 111 virtual bool IsRunningInForcedAppMode() const = 0;
109 112
110 // Returns true if a user is logged in whose session can be locked (i.e. the 113 // Returns true if a user is logged in whose session can be locked (i.e. the
111 // user has a password with which to unlock the session). 114 // user has a password with which to unlock the session).
112 virtual bool CanLockScreen() const = 0; 115 virtual bool CanLockScreen() const = 0;
113 116
114 // Invoked when a user locks the screen. 117 // Invoked when a user locks the screen.
115 virtual void LockScreen() = 0; 118 virtual void LockScreen() = 0;
116 119
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 // value. 258 // value.
256 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0; 259 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0;
257 260
258 // Get the product name. 261 // Get the product name.
259 virtual base::string16 GetProductName() const = 0; 262 virtual base::string16 GetProductName() const = 0;
260 }; 263 };
261 264
262 } // namespace ash 265 } // namespace ash
263 266
264 #endif // ASH_SHELL_DELEGATE_H_ 267 #endif // ASH_SHELL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698