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/wm/window_util.h" | 5 #include "ash/wm/window_util.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "ash/ash_constants.h" | 9 #include "ash/ash_constants.h" |
10 #include "ash/public/cpp/config.h" | 10 #include "ash/public/cpp/config.h" |
11 #include "ash/root_window_controller.h" | 11 #include "ash/root_window_controller.h" |
12 #include "ash/shelf/shelf.h" | 12 #include "ash/shelf/shelf.h" |
13 #include "ash/shell.h" | 13 #include "ash/shell.h" |
14 #include "ash/shell_port.h" | 14 #include "ash/shell_port.h" |
| 15 #include "ash/wm/resize_handle_window_targeter.h" |
15 #include "ash/wm/widget_finder.h" | 16 #include "ash/wm/widget_finder.h" |
16 #include "ash/wm/window_properties.h" | 17 #include "ash/wm/window_properties.h" |
17 #include "ash/wm/window_state.h" | 18 #include "ash/wm/window_state.h" |
18 #include "ash/wm/wm_event.h" | 19 #include "ash/wm/wm_event.h" |
19 #include "ui/aura/client/aura_constants.h" | 20 #include "ui/aura/client/aura_constants.h" |
20 #include "ui/aura/client/capture_client.h" | 21 #include "ui/aura/client/capture_client.h" |
21 #include "ui/aura/client/focus_client.h" | 22 #include "ui/aura/client/focus_client.h" |
22 #include "ui/aura/mus/window_manager_delegate.h" | 23 #include "ui/aura/mus/window_manager_delegate.h" |
23 #include "ui/aura/mus/window_port_mus.h" | 24 #include "ui/aura/mus/window_port_mus.h" |
24 #include "ui/aura/mus/window_tree_client.h" | 25 #include "ui/aura/mus/window_tree_client.h" |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 Shell::window_tree_client()->WasCreatedByThisClient( | 191 Shell::window_tree_client()->WasCreatedByThisClient( |
191 aura::WindowMus::Get(window))); | 192 aura::WindowMus::Get(window))); |
192 window->AddPreTargetHandler(handler); | 193 window->AddPreTargetHandler(handler); |
193 } | 194 } |
194 | 195 |
195 void RemoveLimitedPreTargetHandlerForWindow(ui::EventHandler* handler, | 196 void RemoveLimitedPreTargetHandlerForWindow(ui::EventHandler* handler, |
196 aura::Window* window) { | 197 aura::Window* window) { |
197 window->RemovePreTargetHandler(handler); | 198 window->RemovePreTargetHandler(handler); |
198 } | 199 } |
199 | 200 |
| 201 void InstallResizeHandleWindowTargeterForWindow( |
| 202 aura::Window* window, |
| 203 ImmersiveFullscreenController* immersive_fullscreen_controller) { |
| 204 window->SetEventTargeter(base::MakeUnique<ResizeHandleWindowTargeter>( |
| 205 window, immersive_fullscreen_controller)); |
| 206 } |
| 207 |
200 } // namespace wm | 208 } // namespace wm |
201 } // namespace ash | 209 } // namespace ash |
OLD | NEW |