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

Unified Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 10868012: Browser Plugin: New Implementation (Browser Side) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master-trial-obrowser
Patch Set: Rename class as we agreed upon, keep correct type of instances (guest/embedder, not helpers) inside… Created 8 years, 4 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/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index 8ba5421f33aa700fe63e733024d9a5185ed74684..88a2a91421bc130d6f7e7ca7232125bf9f3d7cc8 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -92,11 +92,12 @@ void BrowserPlugin::SetSrcAttribute(const std::string& src) {
return;
if (!src.empty()) {
BrowserPluginManager::Get()->Send(
- new BrowserPluginHostMsg_NavigateOrCreateGuest(
+ new BrowserPluginHostMsg_NavigateGuest(
render_view_->GetRoutingID(),
instance_id_,
parent_frame_,
- src));
+ src,
+ gfx::Size(width(), height())));
}
src_ = src;
guest_crashed_ = false;
@@ -329,6 +330,10 @@ void BrowserPlugin::updateGeometry(
if (old_width == window_rect.width &&
old_height == window_rect.height)
return;
+ // TODO(fsamuel): Check if this is correct: When src is not set, we shouldn't
+ // send UpdateRect messages to the host.
Charlie Reis 2012/08/27 20:23:59 Can we determine if this is correct or not, rather
lazyboy 2012/08/28 19:07:14 Fady can you asnwer this one?: I've added this so
Fady Samuel 2012/08/29 08:16:20 So when the src attribute is not set, we may or ma
Charlie Reis 2012/08/29 18:08:12 As for Sean's question, I think manually assigning
lazyboy 2012/08/31 00:38:04 I've resolved this issue. Ignoring everything whe
+ if (src_.empty())
+ return;
const size_t stride = skia::PlatformCanvas::StrideForWidth(window_rect.width);
const size_t size = window_rect.height *

Powered by Google App Engine
This is Rietveld 408576698