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/host/root_window_host_factory.h" | 8 #include "ash/host/root_window_host_factory.h" |
9 #include "ash/shell/example_factory.h" | 9 #include "ash/shell/example_factory.h" |
10 #include "ash/shell/launcher_delegate_impl.h" | 10 #include "ash/shell/launcher_delegate_impl.h" |
11 #include "ash/shell/context_menu.h" | 11 #include "ash/shell/context_menu.h" |
12 #include "ash/shell/toplevel_window.h" | 12 #include "ash/shell/toplevel_window.h" |
13 #include "ash/shell_window_ids.h" | 13 #include "ash/shell_window_ids.h" |
14 #include "ash/wm/stacking_controller.h" | |
15 #include "ash/wm/window_util.h" | 14 #include "ash/wm/window_util.h" |
16 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
17 #include "ui/aura/window.h" | 16 #include "ui/aura/window.h" |
18 | 17 |
19 namespace ash { | 18 namespace ash { |
20 namespace shell { | 19 namespace shell { |
21 | 20 |
22 ShellDelegateImpl::ShellDelegateImpl() | 21 ShellDelegateImpl::ShellDelegateImpl() |
23 : watcher_(NULL), | 22 : watcher_(NULL), |
24 launcher_delegate_(NULL), | 23 launcher_delegate_(NULL), |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 } | 207 } |
209 | 208 |
210 double ShellDelegateImpl::GetSavedScreenMagnifierScale() { | 209 double ShellDelegateImpl::GetSavedScreenMagnifierScale() { |
211 return std::numeric_limits<double>::min(); | 210 return std::numeric_limits<double>::min(); |
212 } | 211 } |
213 | 212 |
214 ui::MenuModel* ShellDelegateImpl::CreateContextMenu(aura::RootWindow* root) { | 213 ui::MenuModel* ShellDelegateImpl::CreateContextMenu(aura::RootWindow* root) { |
215 return new ContextMenu(root); | 214 return new ContextMenu(root); |
216 } | 215 } |
217 | 216 |
218 aura::client::StackingClient* ShellDelegateImpl::CreateStackingClient() { | |
219 return new StackingController; | |
220 } | |
221 | |
222 RootWindowHostFactory* ShellDelegateImpl::CreateRootWindowHostFactory() { | 217 RootWindowHostFactory* ShellDelegateImpl::CreateRootWindowHostFactory() { |
223 return RootWindowHostFactory::Create(); | 218 return RootWindowHostFactory::Create(); |
224 } | 219 } |
225 | 220 |
226 } // namespace shell | 221 } // namespace shell |
227 } // namespace ash | 222 } // namespace ash |
OLD | NEW |