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

Side by Side Diff: ash/mus/shell_delegate_mus.cc

Issue 2446453002: Refactor ShouldLockScreenBeforeSuspending to ShouldLockScreenAutomatically (Closed)
Patch Set: comment Created 4 years, 1 month 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
« no previous file with comments | « ash/mus/bridge/wm_shell_mus.cc ('k') | ash/shell/shell_delegate_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "ash/mus/shell_delegate_mus.h" 5 #include "ash/mus/shell_delegate_mus.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/common/gpu_support_stub.h" 9 #include "ash/common/gpu_support_stub.h"
10 #include "ash/common/media_delegate.h" 10 #include "ash/common/media_delegate.h"
(...skipping 30 matching lines...) Expand all
41 41
42 // SessionStateDelegate: 42 // SessionStateDelegate:
43 int GetMaximumNumberOfLoggedInUsers() const override { return 3; } 43 int GetMaximumNumberOfLoggedInUsers() const override { return 3; }
44 int NumberOfLoggedInUsers() const override { 44 int NumberOfLoggedInUsers() const override {
45 // ash_shell has 2 users. 45 // ash_shell has 2 users.
46 return 2; 46 return 2;
47 } 47 }
48 bool IsActiveUserSessionStarted() const override { return true; } 48 bool IsActiveUserSessionStarted() const override { return true; }
49 bool CanLockScreen() const override { return true; } 49 bool CanLockScreen() const override { return true; }
50 bool IsScreenLocked() const override { return screen_locked_; } 50 bool IsScreenLocked() const override { return screen_locked_; }
51 bool ShouldLockScreenBeforeSuspending() const override { return false; } 51 bool ShouldLockScreenAutomatically() const override { return false; }
52 void LockScreen() override { 52 void LockScreen() override {
53 screen_locked_ = true; 53 screen_locked_ = true;
54 NOTIMPLEMENTED(); 54 NOTIMPLEMENTED();
55 } 55 }
56 void UnlockScreen() override { 56 void UnlockScreen() override {
57 NOTIMPLEMENTED(); 57 NOTIMPLEMENTED();
58 screen_locked_ = false; 58 screen_locked_ = false;
59 } 59 }
60 bool IsUserSessionBlocked() const override { return false; } 60 bool IsUserSessionBlocked() const override { return false; }
61 session_manager::SessionState GetSessionState() const override { 61 session_manager::SessionState GetSessionState() const override {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 NOTIMPLEMENTED(); 230 NOTIMPLEMENTED();
231 return base::string16(); 231 return base::string16();
232 } 232 }
233 233
234 gfx::Image ShellDelegateMus::GetDeprecatedAcceleratorImage() const { 234 gfx::Image ShellDelegateMus::GetDeprecatedAcceleratorImage() const {
235 NOTIMPLEMENTED(); 235 NOTIMPLEMENTED();
236 return gfx::Image(); 236 return gfx::Image();
237 } 237 }
238 238
239 } // namespace ash 239 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_shell_mus.cc ('k') | ash/shell/shell_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698