| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights reserv
ed. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "bindings/core/v8/SharedPersistent.h" | 26 #include "bindings/core/v8/SharedPersistent.h" |
| 27 #include "core/html/HTMLFrameOwnerElement.h" | 27 #include "core/html/HTMLFrameOwnerElement.h" |
| 28 #include <v8.h> | 28 #include <v8.h> |
| 29 | 29 |
| 30 struct NPObject; | 30 struct NPObject; |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class HTMLImageLoader; | 34 class HTMLImageLoader; |
| 35 class PluginPlaceholder; | 35 class PluginPlaceholder; |
| 36 class RenderEmbeddedObject; | 36 class LayoutEmbeddedObject; |
| 37 class LayoutPart; | 37 class LayoutPart; |
| 38 class Widget; | 38 class Widget; |
| 39 | 39 |
| 40 enum PreferPlugInsForImagesOption { | 40 enum PreferPlugInsForImagesOption { |
| 41 ShouldPreferPlugInsForImages, | 41 ShouldPreferPlugInsForImages, |
| 42 ShouldNotPreferPlugInsForImages | 42 ShouldNotPreferPlugInsForImages |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 class HTMLPlugInElement : public HTMLFrameOwnerElement { | 45 class HTMLPlugInElement : public HTMLFrameOwnerElement { |
| 46 public: | 46 public: |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) override; | 92 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) override; |
| 93 | 93 |
| 94 virtual bool hasFallbackContent() const; | 94 virtual bool hasFallbackContent() const; |
| 95 virtual bool useFallbackContent() const; | 95 virtual bool useFallbackContent() const; |
| 96 // Create or update the LayoutPart and return it, triggering layout if | 96 // Create or update the LayoutPart and return it, triggering layout if |
| 97 // necessary. | 97 // necessary. |
| 98 virtual LayoutPart* layoutPartForJSBindings() const; | 98 virtual LayoutPart* layoutPartForJSBindings() const; |
| 99 | 99 |
| 100 bool isImageType(); | 100 bool isImageType(); |
| 101 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI
mages; } | 101 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI
mages; } |
| 102 RenderEmbeddedObject* renderEmbeddedObject() const; | 102 LayoutEmbeddedObject* layoutEmbeddedObject() const; |
| 103 bool allowedToLoadFrameURL(const String& url); | 103 bool allowedToLoadFrameURL(const String& url); |
| 104 bool requestObject(const String& url, const String& mimeType, const Vector<S
tring>& paramNames, const Vector<String>& paramValues); | 104 bool requestObject(const String& url, const String& mimeType, const Vector<S
tring>& paramNames, const Vector<String>& paramValues); |
| 105 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback,
bool& useFallback); | 105 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback,
bool& useFallback); |
| 106 | 106 |
| 107 void dispatchErrorEvent(); | 107 void dispatchErrorEvent(); |
| 108 void lazyReattachIfNeeded(); | 108 void lazyReattachIfNeeded(); |
| 109 | 109 |
| 110 String m_serviceType; | 110 String m_serviceType; |
| 111 String m_url; | 111 String m_url; |
| 112 KURL m_loadedUrl; | 112 KURL m_loadedUrl; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 inline bool isHTMLPlugInElement(const HTMLElement& element) | 167 inline bool isHTMLPlugInElement(const HTMLElement& element) |
| 168 { | 168 { |
| 169 return element.isPluginElement(); | 169 return element.isPluginElement(); |
| 170 } | 170 } |
| 171 | 171 |
| 172 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); | 172 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); |
| 173 | 173 |
| 174 } // namespace blink | 174 } // namespace blink |
| 175 | 175 |
| 176 #endif // HTMLPlugInElement_h | 176 #endif // HTMLPlugInElement_h |
| OLD | NEW |