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

Unified Diff: chrome/browser/renderer_host/render_widget_host.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.h
diff --git a/chrome/browser/renderer_host/render_widget_host.h b/chrome/browser/renderer_host/render_widget_host.h
index cf3f9d5a7c83aaa5176e09f084110a452cbe84b4..d2d28268f4279952b7be97429ca8d41012218110 100644
--- a/chrome/browser/renderer_host/render_widget_host.h
+++ b/chrome/browser/renderer_host/render_widget_host.h
@@ -26,6 +26,7 @@ namespace WebKit {
class WebInputEvent;
class WebMouseEvent;
class WebMouseWheelEvent;
+struct WebScreenInfo;
}
class BackingStore;
@@ -391,10 +392,15 @@ class RenderWidgetHost : public IPC::Channel::Listener {
// Using int instead of ViewHostMsg_ImeControl for control's type to avoid
// having to bring in render_messages.h in a header file.
void OnMsgImeUpdateStatus(int control, const gfx::Rect& caret_rect);
- void OnMsgShowPopup(const IPC::Message& message);
#if defined(OS_LINUX)
void OnMsgCreatePluginContainer(gfx::PluginWindowHandle *container);
void OnMsgDestroyPluginContainer(gfx::PluginWindowHandle container);
+#elif defined(OS_MACOSX)
+ void OnMsgShowPopup(const IPC::Message& message);
+ void OnMsgGetScreenInfo(gfx::NativeViewId view,
+ WebKit::WebScreenInfo* results);
+ void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results);
+ void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results);
#endif
// Paints the given bitmap to the current backing store at the given location.
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698