Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: ash/wm/window_util.cc

Issue 2908333003: [mus+ash] Removes WmWindow from ash (app_list, frame, metrics, session, system, wallpaper) (Closed)
Patch Set: [mus ash] Removes WmWindow from ash (rebase, nits and cleanup of use of ResizeHandleWindowTargeter) Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/wm/window_util.h ('k') | ash/wm_window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/wm/window_util.h ('k') | ash/wm_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698