| 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 Lesser General Public | 6 * modify it under the terms of the GNU Lesser 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 13 matching lines...) Expand all Loading... |
| 24 #include "core/page/Page.h" | 24 #include "core/page/Page.h" |
| 25 #include "platform/plugins/PluginData.h" | 25 #include "platform/plugins/PluginData.h" |
| 26 #include "wtf/Vector.h" | 26 #include "wtf/Vector.h" |
| 27 #include "wtf/text/AtomicString.h" | 27 #include "wtf/text/AtomicString.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 DOMPluginArray::DOMPluginArray(LocalFrame* frame) | 31 DOMPluginArray::DOMPluginArray(LocalFrame* frame) |
| 32 : DOMWindowProperty(frame) | 32 : DOMWindowProperty(frame) |
| 33 { | 33 { |
| 34 ScriptWrappable::init(this); | |
| 35 } | 34 } |
| 36 | 35 |
| 37 DOMPluginArray::~DOMPluginArray() | 36 DOMPluginArray::~DOMPluginArray() |
| 38 { | 37 { |
| 39 } | 38 } |
| 40 | 39 |
| 41 unsigned DOMPluginArray::length() const | 40 unsigned DOMPluginArray::length() const |
| 42 { | 41 { |
| 43 PluginData* data = pluginData(); | 42 PluginData* data = pluginData(); |
| 44 if (!data) | 43 if (!data) |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 { | 91 { |
| 93 if (!m_frame) | 92 if (!m_frame) |
| 94 return 0; | 93 return 0; |
| 95 Page* page = m_frame->page(); | 94 Page* page = m_frame->page(); |
| 96 if (!page) | 95 if (!page) |
| 97 return 0; | 96 return 0; |
| 98 return page->pluginData(); | 97 return page->pluginData(); |
| 99 } | 98 } |
| 100 | 99 |
| 101 } // namespace blink | 100 } // namespace blink |
| OLD | NEW |