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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_gtk.h

Issue 10454013: GTK Render Widget Host View resets cached center location on mouse lock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gdk/gdk.h> 9 #include <gdk/gdk.h>
10 10
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 // Do initialization needed just by InitAsPopup() and InitAsFullscreen(). 194 // Do initialization needed just by InitAsPopup() and InitAsFullscreen().
195 // We move and resize |window| to |bounds| and show it and its contents. 195 // We move and resize |window| to |bounds| and show it and its contents.
196 void DoPopupOrFullscreenInit(GtkWindow* window, const gfx::Rect& bounds); 196 void DoPopupOrFullscreenInit(GtkWindow* window, const gfx::Rect& bounds);
197 197
198 // Update the display cursor for the render view. 198 // Update the display cursor for the render view.
199 void ShowCurrentCursor(); 199 void ShowCurrentCursor();
200 200
201 void set_last_mouse_down(GdkEventButton* event); 201 void set_last_mouse_down(GdkEventButton* event);
202 202
203 // Cause the next query for the widget center to recompute the cached value.
204 void MarkCachedWidgetCenterStale();
205
203 gfx::Point GetWidgetCenter(); 206 gfx::Point GetWidgetCenter();
204 207
205 // The model object. 208 // The model object.
206 content::RenderWidgetHostImpl* host_; 209 content::RenderWidgetHostImpl* host_;
207 210
208 // The native UI widget. 211 // The native UI widget.
209 ui::OwnedWidgetGtk view_; 212 ui::OwnedWidgetGtk view_;
210 213
211 // This is true when we are currently painting and thus should handle extra 214 // This is true when we are currently painting and thus should handle extra
212 // paint requests by expanding the invalid rect rather than actually 215 // paint requests by expanding the invalid rect rather than actually
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 GdkEventButton* last_mouse_down_; 307 GdkEventButton* last_mouse_down_;
305 308
306 // Instance of accessibility information for the root of the AtkObject 309 // Instance of accessibility information for the root of the AtkObject
307 // tree representation of the WebKit render tree. 310 // tree representation of the WebKit render tree.
308 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; 311 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_;
309 312
310 ui::GtkSignalRegistrar signals_; 313 ui::GtkSignalRegistrar signals_;
311 }; 314 };
312 315
313 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 316 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698