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

Unified 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, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/window_util.h ('k') | ash/wm_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index b1bba1c18985b55c02017a6152b8cf1b1833c3af..b5be29db4a3da2e0c6641e660dc7c8cf3740a2d4 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -12,6 +12,7 @@
#include "ash/shelf/shelf.h"
#include "ash/shell.h"
#include "ash/shell_port.h"
+#include "ash/wm/resize_handle_window_targeter.h"
#include "ash/wm/widget_finder.h"
#include "ash/wm/window_properties.h"
#include "ash/wm/window_state.h"
@@ -197,5 +198,12 @@ void RemoveLimitedPreTargetHandlerForWindow(ui::EventHandler* handler,
window->RemovePreTargetHandler(handler);
}
+void InstallResizeHandleWindowTargeterForWindow(
+ aura::Window* window,
+ ImmersiveFullscreenController* immersive_fullscreen_controller) {
+ window->SetEventTargeter(base::MakeUnique<ResizeHandleWindowTargeter>(
+ window, immersive_fullscreen_controller));
+}
+
} // namespace wm
} // namespace ash
« 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