| 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/shell/example_factory.h" | 7 #include "ash/shell/example_factory.h" |
| 8 #include "ash/shell/launcher_delegate_impl.h" | 8 #include "ash/shell/launcher_delegate_impl.h" |
| 9 #include "ash/shell/toplevel_window.h" | 9 #include "ash/shell/toplevel_window.h" |
| 10 #include "ash/shell_window_ids.h" | 10 #include "ash/shell_window_ids.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 ShellDelegateImpl::~ShellDelegateImpl() { | 24 ShellDelegateImpl::~ShellDelegateImpl() { |
| 25 } | 25 } |
| 26 | 26 |
| 27 void ShellDelegateImpl::SetWatcher(WindowWatcher* watcher) { | 27 void ShellDelegateImpl::SetWatcher(WindowWatcher* watcher) { |
| 28 watcher_ = watcher; | 28 watcher_ = watcher; |
| 29 if (launcher_delegate_) | 29 if (launcher_delegate_) |
| 30 launcher_delegate_->set_watcher(watcher); | 30 launcher_delegate_->set_watcher(watcher); |
| 31 } | 31 } |
| 32 | 32 |
| 33 views::Widget* ShellDelegateImpl::CreateStatusArea() { | |
| 34 return NULL; | |
| 35 } | |
| 36 | |
| 37 bool ShellDelegateImpl::IsUserLoggedIn() { | 33 bool ShellDelegateImpl::IsUserLoggedIn() { |
| 38 return true; | 34 return true; |
| 39 } | 35 } |
| 40 | 36 |
| 41 void ShellDelegateImpl::LockScreen() { | 37 void ShellDelegateImpl::LockScreen() { |
| 42 ash::shell::CreateLockScreen(); | 38 ash::shell::CreateLockScreen(); |
| 43 locked_ = true; | 39 locked_ = true; |
| 44 ash::Shell::GetInstance()->UpdateShelfVisibility(); | 40 ash::Shell::GetInstance()->UpdateShelfVisibility(); |
| 45 } | 41 } |
| 46 | 42 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 ash::SystemTray* tray) { | 79 ash::SystemTray* tray) { |
| 84 return NULL; | 80 return NULL; |
| 85 } | 81 } |
| 86 | 82 |
| 87 ash::UserWallpaperDelegate* ShellDelegateImpl::CreateUserWallpaperDelegate() { | 83 ash::UserWallpaperDelegate* ShellDelegateImpl::CreateUserWallpaperDelegate() { |
| 88 return NULL; | 84 return NULL; |
| 89 } | 85 } |
| 90 | 86 |
| 91 } // namespace shell | 87 } // namespace shell |
| 92 } // namespace ash | 88 } // namespace ash |
| OLD | NEW |