Chromium Code Reviews| 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 virtual void dispatchBlurEvent(Element*, | |
|
dcheng
2017/04/05 07:48:08
Nit: mark this as override rather than virtual (di
joelhockey
2017/04/05 23:59:11
Thanks
| |
| 50 WebFocusType, | |
| 51 InputDeviceCapabilities*); | |
| 52 virtual void dispatchFocusEvent(Element*, | |
| 53 WebFocusType, | |
| 54 InputDeviceCapabilities*); | |
| 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 PluginView* pluginWidget() const; | 59 PluginView* pluginWidget() const; |
| 54 bool canProcessDrag() const; | 60 bool canProcessDrag() const; |
| 55 const String& url() const { return m_url; } | 61 const String& url() const { return m_url; } |
| 56 | 62 |
| 57 // Public for FrameView::addPartToUpdate() | 63 // Public for FrameView::addPartToUpdate() |
| 58 bool needsPluginUpdate() const { return m_needsPluginUpdate; } | 64 bool needsPluginUpdate() const { return m_needsPluginUpdate; } |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 185 | 191 |
| 186 inline bool isHTMLPlugInElement(const HTMLElement& element) { | 192 inline bool isHTMLPlugInElement(const HTMLElement& element) { |
| 187 return element.isPluginElement(); | 193 return element.isPluginElement(); |
| 188 } | 194 } |
| 189 | 195 |
| 190 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); | 196 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); |
| 191 | 197 |
| 192 } // namespace blink | 198 } // namespace blink |
| 193 | 199 |
| 194 #endif // HTMLPlugInElement_h | 200 #endif // HTMLPlugInElement_h |
| OLD | NEW |