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

Unified Diff: ui/views/corewm/window_modality_controller.cc

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 | « ui/views/corewm/window_modality_controller.h ('k') | ui/views/view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/window_modality_controller.cc
diff --git a/ui/views/corewm/window_modality_controller.cc b/ui/views/corewm/window_modality_controller.cc
index c6b2a37b7b6d243c3bf1a8cb9497b23d305805c6..58ea579548e7fc4b188417f7e2ff9bb13defacb1 100644
--- a/ui/views/corewm/window_modality_controller.cc
+++ b/ui/views/corewm/window_modality_controller.cc
@@ -109,10 +109,10 @@ void WindowModalityController::OnKeyEvent(ui::KeyEvent* event) {
event->StopPropagation();
}
-ui::EventResult WindowModalityController::OnMouseEvent(ui::MouseEvent* event) {
+void WindowModalityController::OnMouseEvent(ui::MouseEvent* event) {
aura::Window* target = static_cast<aura::Window*>(event->target());
- return ProcessLocatedEvent(target, event) ? ui::ER_CONSUMED :
- ui::ER_UNHANDLED;
+ if (ProcessLocatedEvent(target, event))
+ event->StopPropagation();
}
void WindowModalityController::OnTouchEvent(ui::TouchEvent* event) {
« no previous file with comments | « ui/views/corewm/window_modality_controller.h ('k') | ui/views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698