diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/plugins/DOMPluginArray.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/plugins/DOMPluginArray.h')
-rw-r--r-- | Source/WebCore/plugins/DOMPluginArray.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/Source/WebCore/plugins/DOMPluginArray.h b/Source/WebCore/plugins/DOMPluginArray.h index 447c3cfb1..9b803fdea 100644 --- a/Source/WebCore/plugins/DOMPluginArray.h +++ b/Source/WebCore/plugins/DOMPluginArray.h @@ -18,16 +18,12 @@ Boston, MA 02110-1301, USA. */ -#ifndef DOMPluginArray_h -#define DOMPluginArray_h +#pragma once #include "DOMPlugin.h" #include "DOMWindowProperty.h" #include "ScriptWrappable.h" -#include <wtf/Forward.h> -#include <wtf/PassRefPtr.h> #include <wtf/RefCounted.h> -#include <wtf/Vector.h> namespace WebCore { @@ -36,15 +32,15 @@ class PluginData; class DOMPluginArray : public ScriptWrappable, public RefCounted<DOMPluginArray>, public DOMWindowProperty { public: - static PassRefPtr<DOMPluginArray> create(Frame* frame) { return adoptRef(new DOMPluginArray(frame)); } + static Ref<DOMPluginArray> create(Frame* frame) { return adoptRef(*new DOMPluginArray(frame)); } ~DOMPluginArray(); unsigned length() const; - PassRefPtr<DOMPlugin> item(unsigned index); - bool canGetItemsForName(const AtomicString& propertyName); - PassRefPtr<DOMPlugin> namedItem(const AtomicString& propertyName); + RefPtr<DOMPlugin> item(unsigned index); + RefPtr<DOMPlugin> namedItem(const AtomicString& propertyName); + Vector<AtomicString> supportedPropertyNames(); - void refresh(bool reload); + void refresh(bool reloadPages); private: explicit DOMPluginArray(Frame*); @@ -52,5 +48,3 @@ private: }; } // namespace WebCore - -#endif // PluginArray_h |