| 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 #include "ash/shell/shell_delegate_impl.h" | 5 #include "ash/shell/shell_delegate_impl.h" |
| 6 | 6 |
| 7 #include "ash/caps_lock_delegate_stub.h" | 7 #include "ash/caps_lock_delegate_stub.h" |
| 8 #include "ash/shell/example_factory.h" | 8 #include "ash/shell/example_factory.h" |
| 9 #include "ash/shell/launcher_delegate_impl.h" | 9 #include "ash/shell/launcher_delegate_impl.h" |
| 10 #include "ash/shell/toplevel_window.h" | 10 #include "ash/shell/toplevel_window.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 void ShellDelegateImpl::SetWatcher(WindowWatcher* watcher) { | 28 void ShellDelegateImpl::SetWatcher(WindowWatcher* watcher) { |
| 29 watcher_ = watcher; | 29 watcher_ = watcher; |
| 30 if (launcher_delegate_) | 30 if (launcher_delegate_) |
| 31 launcher_delegate_->set_watcher(watcher); | 31 launcher_delegate_->set_watcher(watcher); |
| 32 } | 32 } |
| 33 | 33 |
| 34 bool ShellDelegateImpl::IsUserLoggedIn() { | 34 bool ShellDelegateImpl::IsUserLoggedIn() { |
| 35 return true; | 35 return true; |
| 36 } | 36 } |
| 37 | 37 |
| 38 bool ShellDelegateImpl::IsSessionStarted() { | 38 bool ShellDelegateImpl::IsSessionStarted() const { |
| 39 return true; | 39 return true; |
| 40 } | 40 } |
| 41 | 41 |
| 42 void ShellDelegateImpl::LockScreen() { | 42 void ShellDelegateImpl::LockScreen() { |
| 43 ash::shell::CreateLockScreen(); | 43 ash::shell::CreateLockScreen(); |
| 44 locked_ = true; | 44 locked_ = true; |
| 45 ash::Shell::GetInstance()->UpdateShelfVisibility(); | 45 ash::Shell::GetInstance()->UpdateShelfVisibility(); |
| 46 } | 46 } |
| 47 | 47 |
| 48 void ShellDelegateImpl::UnlockScreen() { | 48 void ShellDelegateImpl::UnlockScreen() { |
| 49 locked_ = false; | 49 locked_ = false; |
| 50 ash::Shell::GetInstance()->UpdateShelfVisibility(); | 50 ash::Shell::GetInstance()->UpdateShelfVisibility(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 bool ShellDelegateImpl::IsScreenLocked() const { | 53 bool ShellDelegateImpl::IsScreenLocked() const { |
| 54 return locked_; | 54 return locked_; |
| 55 } | 55 } |
| 56 | 56 |
| 57 bool ShellDelegateImpl::IsStatusAreaInitiallyVisible() const { |
| 58 return true; |
| 59 } |
| 60 |
| 57 void ShellDelegateImpl::Shutdown() { | 61 void ShellDelegateImpl::Shutdown() { |
| 58 } | 62 } |
| 59 | 63 |
| 60 void ShellDelegateImpl::Exit() { | 64 void ShellDelegateImpl::Exit() { |
| 61 MessageLoopForUI::current()->Quit(); | 65 MessageLoopForUI::current()->Quit(); |
| 62 } | 66 } |
| 63 | 67 |
| 64 void ShellDelegateImpl::NewTab() { | 68 void ShellDelegateImpl::NewTab() { |
| 65 } | 69 } |
| 66 | 70 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } | 146 } |
| 143 | 147 |
| 144 void ShellDelegateImpl::HandleMediaPlayPause() { | 148 void ShellDelegateImpl::HandleMediaPlayPause() { |
| 145 } | 149 } |
| 146 | 150 |
| 147 void ShellDelegateImpl::HandleMediaPrevTrack() { | 151 void ShellDelegateImpl::HandleMediaPrevTrack() { |
| 148 } | 152 } |
| 149 | 153 |
| 150 } // namespace shell | 154 } // namespace shell |
| 151 } // namespace ash | 155 } // namespace ash |
| OLD | NEW |