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

Unified Diff: ash/wm/toplevel_window_event_handler.h

Issue 11592011: events: Update mouse-event handlers to not return EventResult. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/system_modal_container_event_filter.cc ('k') | ash/wm/toplevel_window_event_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/toplevel_window_event_handler.h
diff --git a/ash/wm/toplevel_window_event_handler.h b/ash/wm/toplevel_window_event_handler.h
index 13409378bdaa923971a07b3fcdc6a8f3669da6c9..71f1497ea606be896a0435ac91969c325cd0ab47 100644
--- a/ash/wm/toplevel_window_event_handler.h
+++ b/ash/wm/toplevel_window_event_handler.h
@@ -39,7 +39,7 @@ class ASH_EXPORT ToplevelWindowEventHandler
// Overridden from ui::EventHandler:
virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
- virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
+ virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
// Overridden form aura::client::WindowMoveClient:
@@ -66,24 +66,20 @@ class ASH_EXPORT ToplevelWindowEventHandler
// 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);
+ void HandleMousePressed(aura::Window* target, ui::MouseEvent* event);
+ void HandleMouseReleased(aura::Window* target, ui::MouseEvent* event);
// Called during a drag to resize/position the window.
// The return value is returned by OnMouseEvent() above.
- ui::EventResult HandleDrag(aura::Window* target, ui::LocatedEvent* event);
+ void HandleDrag(aura::Window* target, ui::LocatedEvent* event);
// Called during mouse moves to update window resize shadows.
// Return value is returned by OnMouseEvent() above.
- ui::EventResult HandleMouseMoved(aura::Window* target,
- ui::LocatedEvent* event);
+ void HandleMouseMoved(aura::Window* target, ui::LocatedEvent* event);
// Called for mouse exits to hide window resize shadows.
// Return value is returned by OnMouseEvent() above.
- ui::EventResult HandleMouseExited(aura::Window* target,
- ui::LocatedEvent* event);
+ void HandleMouseExited(aura::Window* target, ui::LocatedEvent* event);
// Invoked from ScopedWindowResizer if the window is destroyed.
void ResizerWindowDestroyed();
« no previous file with comments | « ash/wm/system_modal_container_event_filter.cc ('k') | ash/wm/toplevel_window_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698