| 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 <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "ash/caps_lock_delegate_stub.h" | 9 #include "ash/caps_lock_delegate_stub.h" |
| 10 #include "ash/host/root_window_host_factory.h" | 10 #include "ash/host/root_window_host_factory.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 } // namespace | 52 } // namespace |
| 53 | 53 |
| 54 namespace shell { | 54 namespace shell { |
| 55 | 55 |
| 56 ShellDelegateImpl::ShellDelegateImpl() | 56 ShellDelegateImpl::ShellDelegateImpl() |
| 57 : watcher_(NULL), | 57 : watcher_(NULL), |
| 58 launcher_delegate_(NULL), | 58 launcher_delegate_(NULL), |
| 59 spoken_feedback_enabled_(false), | 59 spoken_feedback_enabled_(false), |
| 60 high_contrast_enabled_(false), | 60 high_contrast_enabled_(false), |
| 61 screen_magnifier_enabled_(false), | 61 screen_magnifier_enabled_(false), |
| 62 screen_magnifier_type_(kDefaultMagnifierType) { | 62 screen_magnifier_type_(kDefaultMagnifierType), |
| 63 large_cursor_enabled_(false) { |
| 63 } | 64 } |
| 64 | 65 |
| 65 ShellDelegateImpl::~ShellDelegateImpl() { | 66 ShellDelegateImpl::~ShellDelegateImpl() { |
| 66 } | 67 } |
| 67 | 68 |
| 68 void ShellDelegateImpl::SetWatcher(WindowWatcher* watcher) { | 69 void ShellDelegateImpl::SetWatcher(WindowWatcher* watcher) { |
| 69 watcher_ = watcher; | 70 watcher_ = watcher; |
| 70 if (launcher_delegate_) | 71 if (launcher_delegate_) |
| 71 launcher_delegate_->set_watcher(watcher); | 72 launcher_delegate_->set_watcher(watcher); |
| 72 } | 73 } |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 } | 164 } |
| 164 | 165 |
| 165 bool ShellDelegateImpl::IsMagnifierEnabled() const { | 166 bool ShellDelegateImpl::IsMagnifierEnabled() const { |
| 166 return screen_magnifier_enabled_; | 167 return screen_magnifier_enabled_; |
| 167 } | 168 } |
| 168 | 169 |
| 169 MagnifierType ShellDelegateImpl::GetMagnifierType() const { | 170 MagnifierType ShellDelegateImpl::GetMagnifierType() const { |
| 170 return screen_magnifier_type_; | 171 return screen_magnifier_type_; |
| 171 } | 172 } |
| 172 | 173 |
| 174 void ShellDelegateImpl::SetLargeCursorEnabled(bool enabled) { |
| 175 large_cursor_enabled_ = enabled; |
| 176 } |
| 177 |
| 178 bool ShellDelegateImpl::IsLargeCursorEnabled() const { |
| 179 return large_cursor_enabled_; |
| 180 } |
| 181 |
| 173 bool ShellDelegateImpl::ShouldAlwaysShowAccessibilityMenu() const { | 182 bool ShellDelegateImpl::ShouldAlwaysShowAccessibilityMenu() const { |
| 174 return false; | 183 return false; |
| 175 } | 184 } |
| 176 | 185 |
| 177 void ShellDelegateImpl::SilenceSpokenFeedback() const { | 186 void ShellDelegateImpl::SilenceSpokenFeedback() const { |
| 178 } | 187 } |
| 179 | 188 |
| 180 app_list::AppListViewDelegate* ShellDelegateImpl::CreateAppListViewDelegate() { | 189 app_list::AppListViewDelegate* ShellDelegateImpl::CreateAppListViewDelegate() { |
| 181 return ash::shell::CreateAppListViewDelegate(); | 190 return ash::shell::CreateAppListViewDelegate(); |
| 182 } | 191 } |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 RootWindowHostFactory* ShellDelegateImpl::CreateRootWindowHostFactory() { | 255 RootWindowHostFactory* ShellDelegateImpl::CreateRootWindowHostFactory() { |
| 247 return RootWindowHostFactory::Create(); | 256 return RootWindowHostFactory::Create(); |
| 248 } | 257 } |
| 249 | 258 |
| 250 base::string16 ShellDelegateImpl::GetProductName() const { | 259 base::string16 ShellDelegateImpl::GetProductName() const { |
| 251 return base::string16(); | 260 return base::string16(); |
| 252 } | 261 } |
| 253 | 262 |
| 254 } // namespace shell | 263 } // namespace shell |
| 255 } // namespace ash | 264 } // namespace ash |
| OLD | NEW |