OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_RENDERER_PLUGINS_SHADOW_DOM_PLUGIN_PLACEHOLDER_H_ |
| 6 #define CHROME_RENDERER_PLUGINS_SHADOW_DOM_PLUGIN_PLACEHOLDER_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "third_party/WebKit/public/web/WebPluginPlaceholder.h" |
| 10 |
| 11 // This is the Chrome implementation of shadow DOM plugin placeholders, |
| 12 // intended to ultimately replace those based on WebViewPlugin. |
| 13 // It is guarded by the --enable-plugin-placeholder-shadow-dom switch. |
| 14 |
| 15 // Returns |true| if shadow DOM plugin placeholders are enabled. |
| 16 bool ShadowDOMPluginPlaceholderEnabled(); |
| 17 |
| 18 // Creates a placeholder suitable for representing a missing plugin. |
| 19 scoped_ptr<blink::WebPluginPlaceholder> |
| 20 CreateShadowDOMPlaceholderForMissingPlugin(); |
| 21 |
| 22 // For testing, these recognize the type of plugin that was produced, |
| 23 // assuming it was produced by a function in this header. |
| 24 bool IsShadowDOMPlaceholderForMissingPlugin( |
| 25 blink::WebPluginPlaceholder* placeholder); |
| 26 |
| 27 #endif // CHROME_RENDERER_PLUGINS_SHADOW_DOM_PLUGIN_PLACEHOLDER_H_ |
OLD | NEW |