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

Unified Diff: webkit/glue/webwidget_impl.cc

Issue 147246: Linux: middle-click to navigate (Closed)
Patch Set: ... Created 11 years, 6 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 | « webkit/glue/webwidget_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webwidget_impl.cc
diff --git a/webkit/glue/webwidget_impl.cc b/webkit/glue/webwidget_impl.cc
index c738cdfe35608bb1d48816f24a8340eeb2778533..ab5ea154268f9ef8e9e3221cb8ba95481caddb04 100644
--- a/webkit/glue/webwidget_impl.cc
+++ b/webkit/glue/webwidget_impl.cc
@@ -97,13 +97,14 @@ void WebWidgetImpl::MouseLeave(const WebMouseEvent& event) {
widget_->handleMouseMoveEvent(MakePlatformMouseEvent(widget_, event));
}
-void WebWidgetImpl::MouseDown(const WebMouseEvent& event) {
- widget_->handleMouseDownEvent(MakePlatformMouseEvent(widget_, event));
+bool WebWidgetImpl::MouseDown(const WebMouseEvent& event) {
+ return widget_->handleMouseDownEvent(MakePlatformMouseEvent(widget_, event));
}
-void WebWidgetImpl::MouseUp(const WebMouseEvent& event) {
+bool WebWidgetImpl::MouseUp(const WebMouseEvent& event) {
MouseCaptureLost();
- widget_->handleMouseReleaseEvent(MakePlatformMouseEvent(widget_, event));
+ return widget_->handleMouseReleaseEvent(
+ MakePlatformMouseEvent(widget_, event));
}
void WebWidgetImpl::MouseWheel(const WebMouseWheelEvent& event) {
@@ -183,12 +184,10 @@ bool WebWidgetImpl::HandleInputEvent(const WebInputEvent* input_event) {
return true;
case WebInputEvent::MouseDown:
- MouseDown(*static_cast<const WebMouseEvent*>(input_event));
- return true;
+ return MouseDown(*static_cast<const WebMouseEvent*>(input_event));
case WebInputEvent::MouseUp:
- MouseUp(*static_cast<const WebMouseEvent*>(input_event));
- return true;
+ return MouseUp(*static_cast<const WebMouseEvent*>(input_event));
// In Windows, RawKeyDown only has information about the physical key, but
// for "selection", we need the information about the character the key
« no previous file with comments | « webkit/glue/webwidget_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698