| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ui/aura_shell/shell.h" | 5 #include "ui/aura_shell/shell.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "ui/aura/desktop.h" | 8 #include "ui/aura/desktop.h" |
| 9 #include "ui/aura/screen_aura.h" | 9 #include "ui/aura/screen_aura.h" |
| 10 #include "ui/aura/toplevel_window_container.h" | 10 #include "ui/aura/toplevel_window_container.h" |
| 11 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
| 12 #include "ui/aura/window_types.h" | 12 #include "ui/aura/window_types.h" |
| 13 #include "ui/aura_shell/default_container_event_filter.h" | 13 #include "ui/aura_shell/default_container_event_filter.h" |
| 14 #include "ui/aura_shell/desktop_layout_manager.h" | 14 #include "ui/aura_shell/desktop_layout_manager.h" |
| 15 #include "ui/aura_shell/launcher/launcher.h" | 15 #include "ui/aura_shell/launcher/launcher.h" |
| 16 #include "ui/aura_shell/shell_delegate.h" | 16 #include "ui/aura_shell/shell_delegate.h" |
| 17 #include "ui/aura_shell/shell_factory.h" | 17 #include "ui/aura_shell/shell_factory.h" |
| 18 #include "ui/aura_shell/shell_window_ids.h" | 18 #include "ui/aura_shell/shell_window_ids.h" |
| 19 #include "ui/aura_shell/workspace/workspace_controller.h" | 19 #include "ui/aura_shell/workspace/workspace_controller.h" |
| 20 #include "ui/base/view_prop.h" | |
| 21 #include "ui/gfx/compositor/layer.h" | 20 #include "ui/gfx/compositor/layer.h" |
| 22 #include "ui/gfx/compositor/layer_animator.h" | 21 #include "ui/gfx/compositor/layer_animator.h" |
| 23 #include "views/widget/native_widget_aura.h" | 22 #include "views/widget/native_widget_aura.h" |
| 24 #include "views/widget/widget.h" | 23 #include "views/widget/widget.h" |
| 25 | 24 |
| 26 namespace aura_shell { | 25 namespace aura_shell { |
| 27 | 26 |
| 28 namespace { | 27 namespace { |
| 29 | 28 |
| 30 // The right/left margin of work area in the screen. | 29 // The right/left margin of work area in the screen. |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 } | 172 } |
| 174 | 173 |
| 175 aura::Window* Shell::GetTopmostWindowToActivate(aura::Window* ignore) const { | 174 aura::Window* Shell::GetTopmostWindowToActivate(aura::Window* ignore) const { |
| 176 const aura::ToplevelWindowContainer* container = | 175 const aura::ToplevelWindowContainer* container = |
| 177 GetContainer(internal::kShellWindowId_DefaultContainer)-> | 176 GetContainer(internal::kShellWindowId_DefaultContainer)-> |
| 178 AsToplevelWindowContainer(); | 177 AsToplevelWindowContainer(); |
| 179 return container->GetTopmostWindowToActivate(ignore); | 178 return container->GetTopmostWindowToActivate(ignore); |
| 180 } | 179 } |
| 181 | 180 |
| 182 } // namespace aura_shell | 181 } // namespace aura_shell |
| OLD | NEW |