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

Unified Diff: ash/common/wm/wm_toplevel_window_event_handler.h

Issue 2035543004: Shuffles and renames ash/common/wm classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: random changes for chrome tests Created 4 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 side-by-side diff with in-line comments
Download patch
Index: ash/common/wm/wm_toplevel_window_event_handler.h
diff --git a/ash/common/wm/wm_toplevel_window_event_handler.h b/ash/common/wm/wm_toplevel_window_event_handler.h
index 27b0107baa97dc52b066393f15d3dfacc167732f..a15e913013e81cda5cdfcf1586eded6888169958 100644
--- a/ash/common/wm/wm_toplevel_window_event_handler.h
+++ b/ash/common/wm/wm_toplevel_window_event_handler.h
@@ -8,8 +8,8 @@
#include <memory>
#include "ash/ash_export.h"
-#include "ash/common/wm/wm_display_observer.h"
#include "ash/common/wm/wm_types.h"
+#include "ash/common/wm_display_observer.h"
#include "base/callback.h"
#include "base/macros.h"
#include "ui/gfx/geometry/rect.h"
@@ -25,12 +25,11 @@ class GestureEvent;
namespace ash {
class WindowResizer;
+class WmShell;
+class WmWindow;
namespace wm {
-class WmGlobals;
-class WmWindow;
-
// WmToplevelWindowEventHandler handles dragging and resizing of top level
// windows. WmToplevelWindowEventHandler is forwarded events, such as from an
// EventHandler.
@@ -48,7 +47,7 @@ class ASH_EXPORT WmToplevelWindowEventHandler : public WmDisplayObserver {
};
using EndClosure = base::Callback<void(DragResult)>;
- explicit WmToplevelWindowEventHandler(WmGlobals* globals);
+ explicit WmToplevelWindowEventHandler(WmShell* shell);
~WmToplevelWindowEventHandler() override;
void OnKeyEvent(ui::KeyEvent* event);
@@ -103,7 +102,7 @@ class ASH_EXPORT WmToplevelWindowEventHandler : public WmDisplayObserver {
// WmDisplayObserver:
void OnDisplayConfigurationChanging() override;
- WmGlobals* globals_;
+ WmShell* shell_;
// The hittest result for the first finger at the time that it initially
// touched the screen. |first_finger_hittest_| is one of ui/base/hit_test.h

Powered by Google App Engine
This is Rietveld 408576698