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

Unified Diff: mash/wm/frame/move_loop.h

Issue 1814533002: Use ui::Event instead of mojom::EventPtr in mash/wm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_eventptr
Patch Set: Created 4 years, 9 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 | « mash/wm/frame/move_event_handler.cc ('k') | mash/wm/frame/move_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/frame/move_loop.h
diff --git a/mash/wm/frame/move_loop.h b/mash/wm/frame/move_loop.h
index a44c93aea2dbafb135356f48b424946e7637d189..314592b47073788e58f89a2f77dbcd8736ac1363 100644
--- a/mash/wm/frame/move_loop.h
+++ b/mash/wm/frame/move_loop.h
@@ -14,6 +14,10 @@
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
+namespace ui {
+class PointerEvent;
+}
+
namespace mash {
namespace wm {
@@ -48,10 +52,10 @@ class MoveLoop : public mus::WindowObserver {
// HitTestCompat.
static scoped_ptr<MoveLoop> Create(mus::Window* target,
int ht_location,
- const mus::mojom::Event& event);
+ const ui::PointerEvent& event);
// Processes an event for a move/resize loop.
- MoveResult Move(const mus::mojom::Event& event);
+ MoveResult Move(const ui::PointerEvent& event);
// If possible reverts any changes made during the move loop.
void Revert();
@@ -63,7 +67,7 @@ class MoveLoop : public mus::WindowObserver {
};
MoveLoop(mus::Window* target,
- const mus::mojom::Event& event,
+ const ui::PointerEvent& event,
Type type,
HorizontalLocation h_loc,
VerticalLocation v_loc);
@@ -76,7 +80,7 @@ class MoveLoop : public mus::WindowObserver {
VerticalLocation* v_loc);
// Does the actual move/resize.
- void MoveImpl(const mus::mojom::Event& event);
+ void MoveImpl(const ui::PointerEvent& event);
// Cancels the loop. This sets |target_| to null and removes the observer.
// After this the MoveLoop is still ongoing and won't stop until the
« no previous file with comments | « mash/wm/frame/move_event_handler.cc ('k') | mash/wm/frame/move_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698