| 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 b51b452161e21addcbdd5addba00153b3615874c..82c9e25738d50696fe9844f1e3661052a8663b1e 100644
|
| --- a/content/renderer/browser_plugin/browser_plugin.cc
|
| +++ b/content/renderer/browser_plugin/browser_plugin.cc
|
| @@ -22,8 +22,10 @@
|
| #include "content/renderer/render_thread_impl.h"
|
| #include "content/renderer/sad_plugin.h"
|
| #include "third_party/WebKit/public/platform/WebRect.h"
|
| +#include "third_party/WebKit/public/web/WebDocument.h"
|
| #include "third_party/WebKit/public/web/WebElement.h"
|
| #include "third_party/WebKit/public/web/WebInputEvent.h"
|
| +#include "third_party/WebKit/public/web/WebLocalFrame.h"
|
| #include "third_party/WebKit/public/web/WebPluginContainer.h"
|
| #include "third_party/WebKit/public/web/WebView.h"
|
| #include "third_party/skia/include/core/SkCanvas.h"
|
| @@ -140,6 +142,12 @@ void BrowserPlugin::Attach() {
|
| attach_params.focused = ShouldGuestBeFocused();
|
| attach_params.visible = visible_;
|
| attach_params.origin = plugin_rect().origin();
|
| + attach_params.is_full_page_plugin = false;
|
| + if (container()) {
|
| + blink::WebLocalFrame* frame = container()->element().document().frame();
|
| + attach_params.is_full_page_plugin =
|
| + frame->view()->mainFrame()->document().isPluginDocument();
|
| + }
|
| gfx::Size view_size(width(), height());
|
| if (!view_size.IsEmpty()) {
|
| PopulateResizeGuestParameters(view_size,
|
|
|