| 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 | 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights |
| 5 * reserved. | 5 * reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 enum PreferPlugInsForImagesOption { | 39 enum PreferPlugInsForImagesOption { |
| 40 ShouldPreferPlugInsForImages, | 40 ShouldPreferPlugInsForImages, |
| 41 ShouldNotPreferPlugInsForImages | 41 ShouldNotPreferPlugInsForImages |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 class CORE_EXPORT HTMLPlugInElement : public HTMLFrameOwnerElement { | 44 class CORE_EXPORT HTMLPlugInElement : public HTMLFrameOwnerElement { |
| 45 public: | 45 public: |
| 46 ~HTMLPlugInElement() override; | 46 ~HTMLPlugInElement() override; |
| 47 DECLARE_VIRTUAL_TRACE(); | 47 DECLARE_VIRTUAL_TRACE(); |
| 48 | 48 |
| 49 void dispatchBlurEvent(Element*, |
| 50 WebFocusType, |
| 51 InputDeviceCapabilities*) override; |
| 52 void dispatchFocusEvent(Element*, |
| 53 WebFocusType, |
| 54 InputDeviceCapabilities*) override; |
| 49 void resetInstance(); | 55 void resetInstance(); |
| 50 // TODO(dcheng): Consider removing this, since HTMLEmbedElementLegacyCall | 56 // TODO(dcheng): Consider removing this, since HTMLEmbedElementLegacyCall |
| 51 // and HTMLObjectElementLegacyCall usage is extremely low. | 57 // and HTMLObjectElementLegacyCall usage is extremely low. |
| 52 SharedPersistent<v8::Object>* pluginWrapper(); | 58 SharedPersistent<v8::Object>* pluginWrapper(); |
| 53 // TODO(joelhockey): Clean up pluginWidget and plugin (maybe also | 59 // TODO(joelhockey): Clean up pluginWidget and plugin (maybe also |
| 54 // pluginWrapper). It would be good to remove and/or rename some of these. | 60 // pluginWrapper). It would be good to remove and/or rename some of these. |
| 55 // pluginWidget and plugin both return the plugin that is stored on this | 61 // pluginWidget and plugin both return the plugin that is stored on this |
| 56 // element. However pluginWidget will synchronously create the plugin if | 62 // element. However pluginWidget will synchronously create the plugin if |
| 57 // required by calling layoutPartForJSBindings. Possibly the pluginWidget | 63 // required by calling layoutPartForJSBindings. Possibly the pluginWidget |
| 58 // code can be inlined into pluginWrapper. | 64 // code can be inlined into pluginWrapper. |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 198 |
| 193 inline bool isHTMLPlugInElement(const HTMLElement& element) { | 199 inline bool isHTMLPlugInElement(const HTMLElement& element) { |
| 194 return element.isPluginElement(); | 200 return element.isPluginElement(); |
| 195 } | 201 } |
| 196 | 202 |
| 197 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); | 203 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); |
| 198 | 204 |
| 199 } // namespace blink | 205 } // namespace blink |
| 200 | 206 |
| 201 #endif // HTMLPlugInElement_h | 207 #endif // HTMLPlugInElement_h |
| OLD | NEW |