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

Unified Diff: content/browser/renderer_host/render_widget_host.cc

Issue 6840060: Progress towards fixing 77536 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 8 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: content/browser/renderer_host/render_widget_host.cc
diff --git a/content/browser/renderer_host/render_widget_host.cc b/content/browser/renderer_host/render_widget_host.cc
index 162f4845a358abc11fb49ad83f479bb59a279f39..5616d2082ce40d5403bb64f11426f1649bc2c295 100644
--- a/content/browser/renderer_host/render_widget_host.cc
+++ b/content/browser/renderer_host/render_widget_host.cc
@@ -120,6 +120,12 @@ gfx::NativeViewId RenderWidgetHost::GetNativeViewId() {
return 0;
}
+gfx::PluginWindowHandle RenderWidgetHost::GetCompositingSurface() {
+ if (view_)
+ return view_->GetCompositingSurface();
+ return gfx::kNullPluginWindow;
+}
+
bool RenderWidgetHost::PreHandleKeyboardEvent(
const NativeWebKeyboardEvent& event,
bool* is_keyboard_shortcut) {
@@ -132,7 +138,8 @@ void RenderWidgetHost::Init() {
renderer_initialized_ = true;
// Send the ack along with the information on placement.
- Send(new ViewMsg_CreatingNew_ACK(routing_id_, GetNativeViewId()));
+ Send(new ViewMsg_CreatingNew_ACK(
+ routing_id_, GetNativeViewId(), GetCompositingSurface()));
WasResized();
}

Powered by Google App Engine
This is Rietveld 408576698