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

Unified Diff: ash/magnifier/partial_magnification_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 | « ash/magnifier/partial_magnification_controller.h ('k') | ash/system/tray/tray_event_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/magnifier/partial_magnification_controller.cc
diff --git a/ash/magnifier/partial_magnification_controller.cc b/ash/magnifier/partial_magnification_controller.cc
index cdabbf28463c97efdfdda471106d05f42713233c..2a4ab84ff88b3e461647ca9b4efd07c2d2b56e70 100644
--- a/ash/magnifier/partial_magnification_controller.cc
+++ b/ash/magnifier/partial_magnification_controller.cc
@@ -76,8 +76,7 @@ void PartialMagnificationController::SetEnabled(bool enabled) {
////////////////////////////////////////////////////////////////////////////////
// PartialMagnificationController: ui::EventHandler implementation
-ui::EventResult PartialMagnificationController::OnMouseEvent(
- ui::MouseEvent* event) {
+void PartialMagnificationController::OnMouseEvent(ui::MouseEvent* event) {
if (IsPartialMagnified() && event->type() == ui::ET_MOUSE_MOVED) {
aura::Window* target = static_cast<aura::Window*>(event->target());
aura::RootWindow* current_root = target->GetRootWindow();
@@ -91,8 +90,6 @@ ui::EventResult PartialMagnificationController::OnMouseEvent(
OnMouseMove(event->root_location());
}
}
-
- return ui::ER_UNHANDLED;
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « ash/magnifier/partial_magnification_controller.h ('k') | ash/system/tray/tray_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698