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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 void SetNeedsPluginUpdate(bool needs_plugin_update) { | 74 void SetNeedsPluginUpdate(bool needs_plugin_update) { |
75 needs_plugin_update_ = needs_plugin_update; | 75 needs_plugin_update_ = needs_plugin_update; |
76 } | 76 } |
77 void UpdatePlugin(); | 77 void UpdatePlugin(); |
78 | 78 |
79 bool ShouldAccelerate() const; | 79 bool ShouldAccelerate() const; |
80 | 80 |
81 void RequestPluginCreationWithoutLayoutObjectIfPossible(); | 81 void RequestPluginCreationWithoutLayoutObjectIfPossible(); |
82 void CreatePluginWithoutLayoutObject(); | 82 void CreatePluginWithoutLayoutObject(); |
83 | 83 |
| 84 virtual Vector<WebParsedFeaturePolicyDeclaration> ConstructContainerPolicy() |
| 85 const; |
| 86 |
84 protected: | 87 protected: |
85 HTMLPlugInElement(const QualifiedName& tag_name, | 88 HTMLPlugInElement(const QualifiedName& tag_name, |
86 Document&, | 89 Document&, |
87 bool created_by_parser, | 90 bool created_by_parser, |
88 PreferPlugInsForImagesOption); | 91 PreferPlugInsForImagesOption); |
89 | 92 |
90 // Node functions: | 93 // Node functions: |
91 void RemovedFrom(ContainerNode* insertion_point) override; | 94 void RemovedFrom(ContainerNode* insertion_point) override; |
92 void DidMoveToNewDocument(Document& old_document) override; | 95 void DidMoveToNewDocument(Document& old_document) override; |
93 | 96 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 201 |
199 inline bool IsHTMLPlugInElement(const HTMLElement& element) { | 202 inline bool IsHTMLPlugInElement(const HTMLElement& element) { |
200 return element.IsPluginElement(); | 203 return element.IsPluginElement(); |
201 } | 204 } |
202 | 205 |
203 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); | 206 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); |
204 | 207 |
205 } // namespace blink | 208 } // namespace blink |
206 | 209 |
207 #endif // HTMLPlugInElement_h | 210 #endif // HTMLPlugInElement_h |
OLD | NEW |