OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009, 2011, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011, 2012 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 return mimeType; | 68 return mimeType; |
69 } | 69 } |
70 | 70 |
71 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI
mages; } | 71 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI
mages; } |
72 | 72 |
73 // Public for FrameView::addWidgetToUpdate() | 73 // Public for FrameView::addWidgetToUpdate() |
74 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } | 74 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } |
75 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne
edsWidgetUpdate; } | 75 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne
edsWidgetUpdate; } |
76 | 76 |
77 protected: | 77 protected: |
78 HTMLPlugInImageElement(const QualifiedName& tagName, Document*, bool created
ByParser, PreferPlugInsForImagesOption); | 78 HTMLPlugInImageElement(const QualifiedName& tagName, Document&, bool created
ByParser, PreferPlugInsForImagesOption); |
79 | 79 |
80 bool isImageType(); | 80 bool isImageType(); |
81 | 81 |
82 OwnPtr<HTMLImageLoader> m_imageLoader; | 82 OwnPtr<HTMLImageLoader> m_imageLoader; |
83 String m_serviceType; | 83 String m_serviceType; |
84 String m_url; | 84 String m_url; |
85 KURL m_loadedUrl; | 85 KURL m_loadedUrl; |
86 | 86 |
87 static void updateWidgetCallback(Node*); | 87 static void updateWidgetCallback(Node*); |
88 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; | 88 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 ASSERT_WITH_SECURITY_IMPLICATION(plugInElement->isPlugInImageElement()); | 133 ASSERT_WITH_SECURITY_IMPLICATION(plugInElement->isPlugInImageElement()); |
134 return static_cast<const HTMLPlugInImageElement*>(plugInElement); | 134 return static_cast<const HTMLPlugInImageElement*>(plugInElement); |
135 } | 135 } |
136 | 136 |
137 // This will catch anyone doing an unnecessary cast. | 137 // This will catch anyone doing an unnecessary cast. |
138 void toHTMLPlugInImageElement(const HTMLPlugInImageElement*); | 138 void toHTMLPlugInImageElement(const HTMLPlugInImageElement*); |
139 | 139 |
140 } // namespace WebCore | 140 } // namespace WebCore |
141 | 141 |
142 #endif // HTMLPlugInImageElement_h | 142 #endif // HTMLPlugInImageElement_h |
OLD | NEW |