OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/aura/wm_window_aura.h" |
5 #include "ash/common/wm/root_window_finder.h" | 6 #include "ash/common/wm/root_window_finder.h" |
6 #include "ash/shell.h" | 7 #include "ash/shell.h" |
7 #include "ash/shell_factory.h" | 8 #include "ash/shell_factory.h" |
8 #include "ash/wm/aura/wm_window_aura.h" | |
9 #include "ash/wm/window_properties.h" | 9 #include "ash/wm/window_properties.h" |
10 #include "ui/aura/client/capture_client.h" | 10 #include "ui/aura/client/capture_client.h" |
11 #include "ui/aura/client/screen_position_client.h" | 11 #include "ui/aura/client/screen_position_client.h" |
12 #include "ui/aura/env.h" | 12 #include "ui/aura/env.h" |
13 #include "ui/aura/test/ui_controls_factory_aura.h" | 13 #include "ui/aura/test/ui_controls_factory_aura.h" |
14 #include "ui/aura/window_property.h" | 14 #include "ui/aura/window_property.h" |
15 #include "ui/aura/window_tree_host.h" | 15 #include "ui/aura/window_tree_host.h" |
16 #include "ui/base/test/ui_controls.h" | 16 #include "ui/base/test/ui_controls.h" |
17 #include "ui/base/test/ui_controls_aura.h" | 17 #include "ui/base/test/ui_controls_aura.h" |
18 #include "ui/display/screen.h" | 18 #include "ui/display/screen.h" |
(...skipping 20 matching lines...) Expand all Loading... |
39 aura::test::CreateUIControlsAura(root_window->GetHost()); | 39 aura::test::CreateUIControlsAura(root_window->GetHost()); |
40 // Pass the ownership to the |root_window|. | 40 // Pass the ownership to the |root_window|. |
41 root_window->SetProperty(kUIControlsKey, native_ui_control); | 41 root_window->SetProperty(kUIControlsKey, native_ui_control); |
42 } | 42 } |
43 return native_ui_control; | 43 return native_ui_control; |
44 } | 44 } |
45 | 45 |
46 // Returns the UIControls object for the RootWindow at |point_in_screen|. | 46 // Returns the UIControls object for the RootWindow at |point_in_screen|. |
47 UIControlsAura* GetUIControlsAt(const gfx::Point& point_in_screen) { | 47 UIControlsAura* GetUIControlsAt(const gfx::Point& point_in_screen) { |
48 // TODO(mazda): Support the case passive grab is taken. | 48 // TODO(mazda): Support the case passive grab is taken. |
49 return GetUIControlsForRootWindow(wm::WmWindowAura::GetAuraWindow( | 49 return GetUIControlsForRootWindow( |
50 ash::wm::GetRootWindowAt(point_in_screen))); | 50 WmWindowAura::GetAuraWindow(ash::wm::GetRootWindowAt(point_in_screen))); |
51 } | 51 } |
52 | 52 |
53 } // namespace | 53 } // namespace |
54 | 54 |
55 class UIControlsAsh : public UIControlsAura { | 55 class UIControlsAsh : public UIControlsAura { |
56 public: | 56 public: |
57 UIControlsAsh() { | 57 UIControlsAsh() { |
58 } | 58 } |
59 ~UIControlsAsh() override {} | 59 ~UIControlsAsh() override {} |
60 | 60 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 private: | 130 private: |
131 DISALLOW_COPY_AND_ASSIGN(UIControlsAsh); | 131 DISALLOW_COPY_AND_ASSIGN(UIControlsAsh); |
132 }; | 132 }; |
133 | 133 |
134 ui_controls::UIControlsAura* CreateAshUIControls() { | 134 ui_controls::UIControlsAura* CreateAshUIControls() { |
135 return new ash::test::UIControlsAsh(); | 135 return new ash::test::UIControlsAsh(); |
136 } | 136 } |
137 | 137 |
138 } // namespace test | 138 } // namespace test |
139 } // namespace ash | 139 } // namespace ash |
OLD | NEW |