Index: chrome/renderer/pepper_plugin_delegate_impl.cc |
diff --git a/chrome/renderer/pepper_plugin_delegate_impl.cc b/chrome/renderer/pepper_plugin_delegate_impl.cc |
index 8d11b2fe90dac1070be7bb744c5f7f7ea924510c..23ecefb0bea5912d256b9584e1f270009afe18a5 100644 |
--- a/chrome/renderer/pepper_plugin_delegate_impl.cc |
+++ b/chrome/renderer/pepper_plugin_delegate_impl.cc |
@@ -39,6 +39,7 @@ |
#include "ppapi/proxy/host_dispatcher.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserCompletion.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.h" |
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
viettrungluu
2011/03/08 00:06:01
nit: alphabetical order
piman
2011/03/08 00:55:30
Done.
|
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
#include "ui/base/l10n/l10n_util.h" |
@@ -867,6 +868,11 @@ PepperPluginDelegateImpl::CreateFullscreenContainer( |
return render_view_->CreatePepperFullscreenContainer(instance); |
} |
+gfx::Size PepperPluginDelegateImpl::GetScreenSize() { |
+ WebKit::WebScreenInfo info = render_view_->screenInfo(); |
+ return gfx::Size(info.rect.width, info.rect.height); |
+} |
+ |
std::string PepperPluginDelegateImpl::GetDefaultEncoding() { |
// TODO(brettw) bug 56615: Somehow get the preference for the default |
// encoding here rather than using the global default for the UI language. |