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, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Lesser General Public License for more details. | 13 * Lesser General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Lesser General Public | 15 * You should have received a copy of the GNU Lesser General Public |
16 * License along with this library; if not, write to the Free Software | 16 * License along with this library; if not, write to the Free Software |
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 U
SA | 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 U
SA |
18 */ | 18 */ |
19 | 19 |
20 #include "config.h" | 20 #include "config.h" |
21 #include "core/plugins/DOMPluginArray.h" | 21 #include "core/plugins/DOMPluginArray.h" |
22 | 22 |
23 #include "core/frame/Frame.h" | 23 #include "core/frame/Frame.h" |
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/text/AtomicString.h" | 26 #include "wtf/text/AtomicString.h" |
27 | 27 |
28 namespace WebCore { | 28 namespace WebCore { |
29 | 29 |
30 DEFINE_GC_INFO(DOMPluginArray); | |
31 | |
32 DOMPluginArray::DOMPluginArray(Frame* frame) | 30 DOMPluginArray::DOMPluginArray(Frame* frame) |
33 : DOMWindowProperty(frame) | 31 : DOMWindowProperty(frame) |
34 { | 32 { |
35 ScriptWrappable::init(this); | 33 ScriptWrappable::init(this); |
36 } | 34 } |
37 | 35 |
38 DOMPluginArray::~DOMPluginArray() | 36 DOMPluginArray::~DOMPluginArray() |
39 { | 37 { |
40 } | 38 } |
41 | 39 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 { | 91 { |
94 if (!m_frame) | 92 if (!m_frame) |
95 return 0; | 93 return 0; |
96 Page* page = m_frame->page(); | 94 Page* page = m_frame->page(); |
97 if (!page) | 95 if (!page) |
98 return 0; | 96 return 0; |
99 return page->pluginData(); | 97 return page->pluginData(); |
100 } | 98 } |
101 | 99 |
102 } // namespace WebCore | 100 } // namespace WebCore |
OLD | NEW |