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

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: 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 IPC::SyncMessage::GenerateReply(&message); 99 IPC::SyncMessage::GenerateReply(&message);
100 embedder_->HandleInputEvent(instance_id, 100 embedder_->HandleInputEvent(instance_id,
101 rvh, 101 rvh,
102 guest_screen_rect, 102 guest_screen_rect,
103 *input_event, 103 *input_event,
104 reply_message); 104 reply_message);
105 } 105 }
106 106
107 void BrowserPluginEmbedderHelper::OnCreateGuest( 107 void BrowserPluginEmbedderHelper::OnCreateGuest(
108 int instance_id, 108 int instance_id,
109 const std::string& storage_partition_id, 109 const BrowserPluginHostMsg_CreateGuest_Params& params) {
110 bool persist_storage,
111 bool focused,
112 bool visible) {
113 // The first BrowserPluginHostMsg_CreateGuest message is handled in 110 // The first BrowserPluginHostMsg_CreateGuest message is handled in
114 // WebContentsImpl. All subsequent BrowserPluginHostMsg_CreateGuest 111 // WebContentsImpl. All subsequent BrowserPluginHostMsg_CreateGuest
115 // messages are handled here. 112 // messages are handled here.
116 embedder_->CreateGuest(render_view_host(), 113 embedder_->CreateGuest(render_view_host(), instance_id, params);
117 instance_id,
118 storage_partition_id,
119 persist_storage,
120 focused,
121 visible);
122 } 114 }
123 115
124 void BrowserPluginEmbedderHelper::OnNavigateGuest( 116 void BrowserPluginEmbedderHelper::OnNavigateGuest(
125 int instance_id, 117 int instance_id,
126 const std::string& src, 118 const std::string& src,
127 const BrowserPluginHostMsg_ResizeGuest_Params& resize_params) { 119 const BrowserPluginHostMsg_ResizeGuest_Params& resize_params) {
128 embedder_->NavigateGuest(render_view_host(), 120 embedder_->NavigateGuest(render_view_host(),
129 instance_id, 121 instance_id,
130 src, 122 src,
131 resize_params); 123 resize_params);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 int instance_id, 162 int instance_id,
171 WebKit::WebDragStatus drag_status, 163 WebKit::WebDragStatus drag_status,
172 const WebDropData& drop_data, 164 const WebDropData& drop_data,
173 WebKit::WebDragOperationsMask drag_mask, 165 WebKit::WebDragOperationsMask drag_mask,
174 const gfx::Point& location) { 166 const gfx::Point& location) {
175 embedder_->DragStatusUpdate(instance_id, drag_status, drop_data, drag_mask, 167 embedder_->DragStatusUpdate(instance_id, drag_status, drop_data, drag_mask,
176 location); 168 location);
177 } 169 }
178 170
179 } // namespace content 171 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698