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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_embedder_helper.cc

Issue 11361052: Browser Plugin: Implement autosize (Embedder-side code) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: BrowserPluginHostMsg_AutoSize_Params had an int instead of bool for enable: fixed Created 8 years, 1 month 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
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 #include "content/browser/browser_plugin/browser_plugin_embedder_helper.h" 5 #include "content/browser/browser_plugin/browser_plugin_embedder_helper.h"
6 6
7 #include "content/browser/browser_plugin/browser_plugin_embedder.h" 7 #include "content/browser/browser_plugin/browser_plugin_embedder.h"
8 #include "content/browser/renderer_host/render_view_host_impl.h" 8 #include "content/browser/renderer_host/render_view_host_impl.h"
9 #include "content/common/browser_plugin_messages.h" 9 #include "content/common/browser_plugin_messages.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 IPC::SyncMessage::GenerateReply(&message); 101 IPC::SyncMessage::GenerateReply(&message);
102 embedder_->HandleInputEvent(instance_id, 102 embedder_->HandleInputEvent(instance_id,
103 rvh, 103 rvh,
104 guest_screen_rect, 104 guest_screen_rect,
105 *input_event, 105 *input_event,
106 reply_message); 106 reply_message);
107 } 107 }
108 108
109 void BrowserPluginEmbedderHelper::OnCreateGuest( 109 void BrowserPluginEmbedderHelper::OnCreateGuest(
110 int instance_id, 110 int instance_id,
111 const std::string& storage_partition_id, 111 const BrowserPluginHostMsg_CreateGuest_Params& params) {
112 bool persist_storage,
113 bool focused,
114 bool visible) {
115 // The first BrowserPluginHostMsg_CreateGuest message is handled in 112 // The first BrowserPluginHostMsg_CreateGuest message is handled in
116 // WebContentsImpl. All subsequent BrowserPluginHostMsg_CreateGuest 113 // WebContentsImpl. All subsequent BrowserPluginHostMsg_CreateGuest
117 // messages are handled here. 114 // messages are handled here.
118 embedder_->CreateGuest(render_view_host(), 115 embedder_->CreateGuest(render_view_host(), instance_id, params);
119 instance_id,
120 storage_partition_id,
121 persist_storage,
122 focused,
123 visible);
124 } 116 }
125 117
126 void BrowserPluginEmbedderHelper::OnNavigateGuest( 118 void BrowserPluginEmbedderHelper::OnNavigateGuest(
127 int instance_id, 119 int instance_id,
128 const std::string& src, 120 const std::string& src,
129 const BrowserPluginHostMsg_ResizeGuest_Params& resize_params) { 121 const BrowserPluginHostMsg_ResizeGuest_Params& resize_params) {
130 embedder_->NavigateGuest(render_view_host(), 122 embedder_->NavigateGuest(render_view_host(),
131 instance_id, 123 instance_id,
132 src, 124 src,
133 resize_params); 125 resize_params);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 int instance_id, 164 int instance_id,
173 WebKit::WebDragStatus drag_status, 165 WebKit::WebDragStatus drag_status,
174 const WebDropData& drop_data, 166 const WebDropData& drop_data,
175 WebKit::WebDragOperationsMask drag_mask, 167 WebKit::WebDragOperationsMask drag_mask,
176 const gfx::Point& location) { 168 const gfx::Point& location) {
177 embedder_->DragStatusUpdate(instance_id, drag_status, drop_data, drag_mask, 169 embedder_->DragStatusUpdate(instance_id, drag_status, drop_data, drag_mask,
178 location); 170 location);
179 } 171 }
180 172
181 } // namespace content 173 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_embedder_helper.h ('k') | content/browser/browser_plugin/browser_plugin_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698