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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 6588075: Remove fake mouse move hack. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_gtk.cc
diff --git a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc
index f6b16188d3d285daf0917e7387880e6463151d7a..e651a71267c76f2a6bd5f912e5d48bdd74be25bc 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc
+++ b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc
@@ -167,27 +167,6 @@ class RenderWidgetHostViewGtkWidget {
static gboolean OnFocusIn(GtkWidget* widget, GdkEventFocus* focus,
RenderWidgetHostViewGtk* host_view) {
- int x, y;
- gtk_widget_get_pointer(widget, &x, &y);
- // http://crbug.com/13389
- // If the cursor is in the render view, fake a mouse move event so that
- // webkit updates its state. Otherwise webkit might think the cursor is
- // somewhere it's not.
- if (x >= 0 && y >= 0 && x < widget->allocation.width &&
- y < widget->allocation.height) {
- WebKit::WebMouseEvent fake_event;
- fake_event.timeStampSeconds = base::Time::Now().ToDoubleT();
- fake_event.modifiers = 0;
- fake_event.windowX = fake_event.x = x;
- fake_event.windowY = fake_event.y = y;
- gdk_window_get_origin(widget->window, &x, &y);
- fake_event.globalX = fake_event.x + x;
- fake_event.globalY = fake_event.y + y;
- fake_event.type = WebKit::WebInputEvent::MouseMove;
- fake_event.button = WebKit::WebMouseEvent::ButtonNone;
- host_view->GetRenderWidgetHost()->ForwardMouseEvent(fake_event);
- }
-
host_view->ShowCurrentCursor();
host_view->GetRenderWidgetHost()->GotFocus();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698