| Index: chrome/renderer/plugins/chrome_plugin_placeholder.h
|
| diff --git a/chrome/renderer/plugins/chrome_plugin_placeholder.h b/chrome/renderer/plugins/chrome_plugin_placeholder.h
|
| index 0236320be4a6971a60d4b074ddb0c934b562c5e7..85d49b7f3fb923f28b15f8415d052c07df67f945 100644
|
| --- a/chrome/renderer/plugins/chrome_plugin_placeholder.h
|
| +++ b/chrome/renderer/plugins/chrome_plugin_placeholder.h
|
| @@ -5,12 +5,28 @@
|
| #ifndef CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_
|
| #define CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_
|
|
|
| -#include "chrome/renderer/plugins/power_saver_info.h"
|
| #include "components/plugins/renderer/loadable_plugin_placeholder.h"
|
| #include "content/public/renderer/context_menu_client.h"
|
| #include "content/public/renderer/render_process_observer.h"
|
|
|
| +namespace gfx {
|
| +class Size;
|
| +}
|
| +
|
| enum class ChromeViewHostMsg_GetPluginInfo_Status;
|
| +
|
| +// This contains information specifying the poster image of plugin placeholders.
|
| +// The default constructor specifies no poster image.
|
| +struct PlaceholderPosterInfo {
|
| + // The poster image specified in image 'srcset' attribute format.
|
| + std::string poster_attribute;
|
| +
|
| + // Used to resolve relative paths in |poster_attribute|.
|
| + GURL base_url;
|
| +
|
| + // Specify this to provide partially obscured plugins a centered poster image.
|
| + gfx::Size custom_poster_size;
|
| +};
|
|
|
| class ChromePluginPlaceholder final
|
| : public plugins::LoadablePluginPlaceholder,
|
| @@ -29,7 +45,7 @@
|
| const base::string16& name,
|
| int resource_id,
|
| const base::string16& message,
|
| - const PowerSaverInfo& power_saver_info);
|
| + const PlaceholderPosterInfo& poster_info);
|
|
|
| // Creates a new WebViewPlugin with a MissingPlugin as a delegate.
|
| static ChromePluginPlaceholder* CreateLoadableMissingPlugin(
|
|
|