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 kShouldPreferPlugInsForImages, | 40 kShouldPreferPlugInsForImages, |
41 kShouldNotPreferPlugInsForImages | 41 kShouldNotPreferPlugInsForImages |
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 SetFocused(bool, WebFocusType) override; | 49 void SetFocused(bool, WebFocusType, Node* common_ancestor = nullptr) override; |
50 void ResetInstance(); | 50 void ResetInstance(); |
51 // TODO(dcheng): Consider removing this, since HTMLEmbedElementLegacyCall | 51 // TODO(dcheng): Consider removing this, since HTMLEmbedElementLegacyCall |
52 // and HTMLObjectElementLegacyCall usage is extremely low. | 52 // and HTMLObjectElementLegacyCall usage is extremely low. |
53 SharedPersistent<v8::Object>* PluginWrapper(); | 53 SharedPersistent<v8::Object>* PluginWrapper(); |
54 // TODO(joelhockey): Clean up pluginWidget and plugin (maybe also | 54 // TODO(joelhockey): Clean up pluginWidget and plugin (maybe also |
55 // pluginWrapper). It would be good to remove and/or rename some of these. | 55 // pluginWrapper). It would be good to remove and/or rename some of these. |
56 // pluginWidget and plugin both return the plugin that is stored on this | 56 // pluginWidget and plugin both return the plugin that is stored on this |
57 // element. However pluginWidget will synchronously create the plugin if | 57 // element. However pluginWidget will synchronously create the plugin if |
58 // required by calling layoutPartForJSBindings. Possibly the pluginWidget | 58 // required by calling layoutPartForJSBindings. Possibly the pluginWidget |
59 // code can be inlined into pluginWrapper. | 59 // code can be inlined into pluginWrapper. |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 193 |
194 inline bool IsHTMLPlugInElement(const HTMLElement& element) { | 194 inline bool IsHTMLPlugInElement(const HTMLElement& element) { |
195 return element.IsPluginElement(); | 195 return element.IsPluginElement(); |
196 } | 196 } |
197 | 197 |
198 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); | 198 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); |
199 | 199 |
200 } // namespace blink | 200 } // namespace blink |
201 | 201 |
202 #endif // HTMLPlugInElement_h | 202 #endif // HTMLPlugInElement_h |
OLD | NEW |