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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view.h

Issue 151130: Wire GetWindowRect, GetRootWindowRect, and GetScreenInfo out to the UI thread. (Closed)
Patch Set: Darin's suggestions. Created 11 years, 5 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
Index: chrome/browser/renderer_host/render_widget_host_view.h
diff --git a/chrome/browser/renderer_host/render_widget_host_view.h b/chrome/browser/renderer_host/render_widget_host_view.h
index dca077e65784f8d7f7c97fe29af7b448d9457cbb..fd72167d1e7f385ecd679e41bd022a48c65a7137 100644
--- a/chrome/browser/renderer_host/render_widget_host_view.h
+++ b/chrome/browser/renderer_host/render_widget_host_view.h
@@ -149,6 +149,12 @@ class RenderWidgetHostView {
int item_height,
int selected_item,
const std::vector<WebMenuItem>& items) = 0;
+
+ // Get the view's position on the screen.
+ virtual gfx::Rect GetWindowRect() = 0;
+
+ // Get the view's window's position on the screen.
+ virtual gfx::Rect GetRootWindowRect() = 0;
#endif
#if defined(OS_LINUX)
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698