OLD | NEW |
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/bridge/wm_shell_mus.h" | 5 #include "ash/mus/bridge/wm_shell_mus.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/common/accelerators/accelerator_controller.h" | 9 #include "ash/common/accelerators/accelerator_controller.h" |
10 #include "ash/common/key_event_watcher.h" | 10 #include "ash/common/key_event_watcher.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 // SessionStateDelegate: | 58 // SessionStateDelegate: |
59 int GetMaximumNumberOfLoggedInUsers() const override { return 3; } | 59 int GetMaximumNumberOfLoggedInUsers() const override { return 3; } |
60 int NumberOfLoggedInUsers() const override { | 60 int NumberOfLoggedInUsers() const override { |
61 // ash_shell has 2 users. | 61 // ash_shell has 2 users. |
62 return 2; | 62 return 2; |
63 } | 63 } |
64 bool IsActiveUserSessionStarted() const override { return true; } | 64 bool IsActiveUserSessionStarted() const override { return true; } |
65 bool CanLockScreen() const override { return true; } | 65 bool CanLockScreen() const override { return true; } |
66 bool IsScreenLocked() const override { return screen_locked_; } | 66 bool IsScreenLocked() const override { return screen_locked_; } |
67 bool ShouldLockScreenBeforeSuspending() const override { return false; } | 67 bool ShouldLockScreenAutomatically() const override { return false; } |
68 void LockScreen() override { | 68 void LockScreen() override { |
69 screen_locked_ = true; | 69 screen_locked_ = true; |
70 NOTIMPLEMENTED(); | 70 NOTIMPLEMENTED(); |
71 } | 71 } |
72 void UnlockScreen() override { | 72 void UnlockScreen() override { |
73 NOTIMPLEMENTED(); | 73 NOTIMPLEMENTED(); |
74 screen_locked_ = false; | 74 screen_locked_ = false; |
75 } | 75 } |
76 bool IsUserSessionBlocked() const override { return false; } | 76 bool IsUserSessionBlocked() const override { return false; } |
77 session_manager::SessionState GetSessionState() const override { | 77 session_manager::SessionState GetSessionState() const override { |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 observer.OnWindowActivated(gained_active, lost_active); | 463 observer.OnWindowActivated(gained_active, lost_active); |
464 } | 464 } |
465 | 465 |
466 void WmShellMus::OnDidDestroyClient(ui::WindowTreeClient* client) { | 466 void WmShellMus::OnDidDestroyClient(ui::WindowTreeClient* client) { |
467 DCHECK_EQ(window_tree_client(), client); | 467 DCHECK_EQ(window_tree_client(), client); |
468 client->RemoveObserver(this); | 468 client->RemoveObserver(this); |
469 } | 469 } |
470 | 470 |
471 } // namespace mus | 471 } // namespace mus |
472 } // namespace ash | 472 } // namespace ash |
OLD | NEW |