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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 DOMPluginArray::DOMPluginArray(LocalFrame* frame) | 31 DOMPluginArray::DOMPluginArray(LocalFrame* frame) |
32 : DOMWindowProperty(frame) | 32 : DOMWindowProperty(frame) |
33 { | 33 { |
34 } | 34 } |
35 | 35 |
36 DOMPluginArray::~DOMPluginArray() | 36 DOMPluginArray::~DOMPluginArray() |
37 { | 37 { |
38 } | 38 } |
39 | 39 |
| 40 void DOMPluginArray::trace(Visitor* visitor) |
| 41 { |
| 42 DOMWindowProperty::trace(visitor); |
| 43 } |
| 44 |
40 unsigned DOMPluginArray::length() const | 45 unsigned DOMPluginArray::length() const |
41 { | 46 { |
42 PluginData* data = pluginData(); | 47 PluginData* data = pluginData(); |
43 if (!data) | 48 if (!data) |
44 return 0; | 49 return 0; |
45 return data->plugins().size(); | 50 return data->plugins().size(); |
46 } | 51 } |
47 | 52 |
48 PassRefPtrWillBeRawPtr<DOMPlugin> DOMPluginArray::item(unsigned index) | 53 PassRefPtrWillBeRawPtr<DOMPlugin> DOMPluginArray::item(unsigned index) |
49 { | 54 { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 { | 96 { |
92 if (!m_frame) | 97 if (!m_frame) |
93 return 0; | 98 return 0; |
94 Page* page = m_frame->page(); | 99 Page* page = m_frame->page(); |
95 if (!page) | 100 if (!page) |
96 return 0; | 101 return 0; |
97 return page->pluginData(); | 102 return page->pluginData(); |
98 } | 103 } |
99 | 104 |
100 } // namespace blink | 105 } // namespace blink |
OLD | NEW |