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

Side by Side Diff: chrome/browser/ui/ash/session_state_delegate_chromeos.h

Issue 1053013007: Minimized windows should not be activated by another user in multiprofile scenario. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Oshima's comment. Created 5 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ 6 #define CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_
7 7
8 #include "ash/session/session_state_delegate.h" 8 #include "ash/session/session_state_delegate.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 13 matching lines...) Expand all
24 public chromeos::UserAddingScreen::Observer { 24 public chromeos::UserAddingScreen::Observer {
25 public: 25 public:
26 SessionStateDelegateChromeos(); 26 SessionStateDelegateChromeos();
27 ~SessionStateDelegateChromeos() override; 27 ~SessionStateDelegateChromeos() override;
28 28
29 // ash::SessionStateDelegate: 29 // ash::SessionStateDelegate:
30 content::BrowserContext* GetBrowserContextByIndex( 30 content::BrowserContext* GetBrowserContextByIndex(
31 ash::MultiProfileIndex index) override; 31 ash::MultiProfileIndex index) override;
32 content::BrowserContext* GetBrowserContextForWindow( 32 content::BrowserContext* GetBrowserContextForWindow(
33 aura::Window* window) override; 33 aura::Window* window) override;
34 content::BrowserContext* GetUserPresentingBrowserContextForWindow(
35 aura::Window* window) override;
34 int GetMaximumNumberOfLoggedInUsers() const override; 36 int GetMaximumNumberOfLoggedInUsers() const override;
35 int NumberOfLoggedInUsers() const override; 37 int NumberOfLoggedInUsers() const override;
36 bool CanAddUserToMultiProfile(AddUserError* error) const override; 38 bool CanAddUserToMultiProfile(AddUserError* error) const override;
37 bool IsActiveUserSessionStarted() const override; 39 bool IsActiveUserSessionStarted() const override;
38 bool CanLockScreen() const override; 40 bool CanLockScreen() const override;
39 bool IsScreenLocked() const override; 41 bool IsScreenLocked() const override;
40 bool ShouldLockScreenBeforeSuspending() const override; 42 bool ShouldLockScreenBeforeSuspending() const override;
41 void LockScreen() override; 43 void LockScreen() override;
42 void UnlockScreen() override; 44 void UnlockScreen() override;
43 bool IsUserSessionBlocked() const override; 45 bool IsUserSessionBlocked() const override;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // List of observers is only used on Chrome OS for now. 82 // List of observers is only used on Chrome OS for now.
81 ObserverList<ash::SessionStateObserver> session_state_observer_list_; 83 ObserverList<ash::SessionStateObserver> session_state_observer_list_;
82 84
83 // Session state (e.g. login screen vs. user session). 85 // Session state (e.g. login screen vs. user session).
84 SessionState session_state_; 86 SessionState session_state_;
85 87
86 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateChromeos); 88 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateChromeos);
87 }; 89 };
88 90
89 #endif // CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ 91 #endif // CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698