| Index: chrome/renderer/plugins/chrome_plugin_placeholder.cc
|
| diff --git a/chrome/renderer/plugins/chrome_plugin_placeholder.cc b/chrome/renderer/plugins/chrome_plugin_placeholder.cc
|
| index 6bb6bd2e7366a0febe5f8fbfea6faa04bee8a272..d0c3717a2b878604a0af3de665f1eb203dfa96c3 100644
|
| --- a/chrome/renderer/plugins/chrome_plugin_placeholder.cc
|
| +++ b/chrome/renderer/plugins/chrome_plugin_placeholder.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/renderer/plugins/chrome_plugin_placeholder.h"
|
|
|
| +#include "base/strings/string_number_conversions.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "base/values.h"
|
| #include "chrome/common/prerender_messages.h"
|
| @@ -154,7 +155,9 @@ ChromePluginPlaceholder* ChromePluginPlaceholder::CreateBlockedPlugin(
|
| int template_id,
|
| const base::string16& message,
|
| const std::string& poster_attribute,
|
| - const GURL& base_url) {
|
| + const GURL& base_url,
|
| + int custom_poster_width,
|
| + int custom_poster_height) {
|
| base::DictionaryValue values;
|
| values.SetString("message", message);
|
| values.SetString("name", name);
|
| @@ -163,6 +166,15 @@ ChromePluginPlaceholder* ChromePluginPlaceholder::CreateBlockedPlugin(
|
| if (!poster_attribute.empty()) {
|
| values.SetString("poster", poster_attribute);
|
| values.SetString("baseurl", base_url.spec());
|
| +
|
| + if (custom_poster_width > 0) {
|
| + values.SetString("visibleWidth",
|
| + base::Int64ToString(custom_poster_width) + "px");
|
| + }
|
| + if (custom_poster_height > 0) {
|
| + values.SetString("visibleHeight",
|
| + base::Int64ToString(custom_poster_height) + "px");
|
| + }
|
| }
|
|
|
| const base::StringPiece template_html(
|
|
|