| 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/accessibility_delegate.h" | 7 #include "ash/accessibility_delegate.h" |
| 8 #include "ash/default_accessibility_delegate.h" | 8 #include "ash/default_accessibility_delegate.h" |
| 9 #include "ash/default_wallpaper_delegate.h" | 9 #include "ash/default_wallpaper_delegate.h" |
| 10 #include "ash/gpu_support_stub.h" | 10 #include "ash/gpu_support_stub.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 DISALLOW_COPY_AND_ASSIGN(PaletteDelegateImpl); | 59 DISALLOW_COPY_AND_ASSIGN(PaletteDelegateImpl); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 class SessionStateDelegateImpl : public SessionStateDelegate { | 62 class SessionStateDelegateImpl : public SessionStateDelegate { |
| 63 public: | 63 public: |
| 64 SessionStateDelegateImpl() : user_info_(new user_manager::UserInfoImpl()) {} | 64 SessionStateDelegateImpl() : user_info_(new user_manager::UserInfoImpl()) {} |
| 65 | 65 |
| 66 ~SessionStateDelegateImpl() override {} | 66 ~SessionStateDelegateImpl() override {} |
| 67 | 67 |
| 68 // SessionStateDelegate: | 68 // SessionStateDelegate: |
| 69 bool ShouldShowAvatar(WmWindow* window) const override { | 69 bool ShouldShowAvatar(aura::Window* window) const override { |
| 70 return !user_info_->GetImage().isNull(); | 70 return !user_info_->GetImage().isNull(); |
| 71 } | 71 } |
| 72 gfx::ImageSkia GetAvatarImageForWindow(WmWindow* window) const override { | 72 gfx::ImageSkia GetAvatarImageForWindow(aura::Window* window) const override { |
| 73 return gfx::ImageSkia(); | 73 return gfx::ImageSkia(); |
| 74 } | 74 } |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 // A pseudo user info. | 77 // A pseudo user info. |
| 78 std::unique_ptr<user_manager::UserInfo> user_info_; | 78 std::unique_ptr<user_manager::UserInfo> user_info_; |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateImpl); | 80 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateImpl); |
| 81 }; | 81 }; |
| 82 | 82 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 return true; | 176 return true; |
| 177 } | 177 } |
| 178 | 178 |
| 179 void ShellDelegateImpl::SetTouchscreenEnabledInPrefs(bool enabled, | 179 void ShellDelegateImpl::SetTouchscreenEnabledInPrefs(bool enabled, |
| 180 bool use_local_state) {} | 180 bool use_local_state) {} |
| 181 | 181 |
| 182 void ShellDelegateImpl::UpdateTouchscreenStatusFromPrefs() {} | 182 void ShellDelegateImpl::UpdateTouchscreenStatusFromPrefs() {} |
| 183 | 183 |
| 184 } // namespace shell | 184 } // namespace shell |
| 185 } // namespace ash | 185 } // namespace ash |
| OLD | NEW |