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

Unified Diff: ash/wm/toplevel_window_event_handler.h

Issue 10911256: Change the way the ToplevelEventHandler is hooked up. It is now both a pre- and post-target event h… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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/wm/toplevel_window_event_handler.h
===================================================================
--- ash/wm/toplevel_window_event_handler.h (revision 156300)
+++ ash/wm/toplevel_window_event_handler.h (working copy)
@@ -74,17 +74,24 @@
// Finishes the drag.
void CompleteDrag(DragCompletionStatus status, int event_flags);
+ ui::EventResult HandleMousePressed(aura::Window* target,
+ ui::MouseEvent* event);
+ ui::EventResult HandleMouseReleased(aura::Window* target,
+ ui::MouseEvent* event);
+
// Called during a drag to resize/position the window.
// The return value is returned by OnMouseEvent() above.
- bool HandleDrag(aura::Window* target, ui::LocatedEvent* event);
+ ui::EventResult HandleDrag(aura::Window* target, ui::LocatedEvent* event);
// Called during mouse moves to update window resize shadows.
// Return value is returned by OnMouseEvent() above.
- bool HandleMouseMoved(aura::Window* target, ui::LocatedEvent* event);
+ ui::EventResult HandleMouseMoved(aura::Window* target,
+ ui::LocatedEvent* event);
// Called for mouse exits to hide window resize shadows.
// Return value is returned by OnMouseEvent() above.
- bool HandleMouseExited(aura::Window* target, ui::LocatedEvent* event);
+ ui::EventResult HandleMouseExited(aura::Window* target,
+ ui::LocatedEvent* event);
// Invoked from ScopedWindowResizer if the window is destroyed.
void ResizerWindowDestroyed();

Powered by Google App Engine
This is Rietveld 408576698