| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 3 Copyright (C) 2008 Apple Inc. All rights reserved. | 3 Copyright (C) 2008 Apple Inc. All rights reserved. |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 class DOMPluginArray final : public GarbageCollected<DOMPluginArray>, public Scr
iptWrappable, public DOMWindowProperty { | 35 class DOMPluginArray final : public GarbageCollected<DOMPluginArray>, public Scr
iptWrappable, public DOMWindowProperty { |
| 36 DEFINE_WRAPPERTYPEINFO(); | 36 DEFINE_WRAPPERTYPEINFO(); |
| 37 USING_GARBAGE_COLLECTED_MIXIN(DOMPluginArray); | 37 USING_GARBAGE_COLLECTED_MIXIN(DOMPluginArray); |
| 38 public: | 38 public: |
| 39 static DOMPluginArray* create(LocalFrame* frame) | 39 static DOMPluginArray* create(LocalFrame* frame) |
| 40 { | 40 { |
| 41 return new DOMPluginArray(frame); | 41 return new DOMPluginArray(frame); |
| 42 } | 42 } |
| 43 | 43 |
| 44 unsigned length() const; | 44 unsigned length() const; |
| 45 DOMPlugin* getPlugin(unsigned index); |
| 45 DOMPlugin* item(unsigned index); | 46 DOMPlugin* item(unsigned index); |
| 46 DOMPlugin* namedItem(const AtomicString& propertyName); | 47 DOMPlugin* namedItem(const AtomicString& propertyName); |
| 47 | 48 |
| 48 void refresh(bool reload); | 49 void refresh(bool reload); |
| 49 | 50 |
| 50 DECLARE_VIRTUAL_TRACE(); | 51 DECLARE_VIRTUAL_TRACE(); |
| 51 | 52 |
| 52 private: | 53 private: |
| 53 explicit DOMPluginArray(LocalFrame*); | 54 explicit DOMPluginArray(LocalFrame*); |
| 54 PluginData* pluginData() const; | 55 PluginData* pluginData() const; |
| 56 using PluginMap = HeapHashMap<unsigned, Member<DOMPlugin>, DefaultHash<unsig
ned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; |
| 57 PluginMap m_plugins; |
| 58 double m_modified; |
| 55 }; | 59 }; |
| 56 | 60 |
| 57 } // namespace blink | 61 } // namespace blink |
| 58 | 62 |
| 59 #endif // DOMPluginArray_h | 63 #endif // DOMPluginArray_h |
| OLD | NEW |