Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(901)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLPlugInElement.h

Issue 2218883002: Record HTMLPluginElement::requestObject result. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pdr comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 bool loadPlugin(const KURL&, const String& mimeType, const Vector<String>& p aramNames, const Vector<String>& paramValues, bool useFallback, bool requireLayo utObject); 130 bool loadPlugin(const KURL&, const String& mimeType, const Vector<String>& p aramNames, const Vector<String>& paramValues, bool useFallback, bool requireLayo utObject);
131 // Perform checks after we have determined that a plugin will be used to 131 // Perform checks after we have determined that a plugin will be used to
132 // show the object (i.e after allowedToLoadObject). 132 // show the object (i.e after allowedToLoadObject).
133 bool allowedToLoadPlugin(const KURL&, const String& mimeType); 133 bool allowedToLoadPlugin(const KURL&, const String& mimeType);
134 // Perform checks based on the URL and MIME-type of the object to load. 134 // Perform checks based on the URL and MIME-type of the object to load.
135 bool allowedToLoadObject(const KURL&, const String& mimeType); 135 bool allowedToLoadObject(const KURL&, const String& mimeType);
136 bool wouldLoadAsNetscapePlugin(const String& url, const String& serviceType) ; 136 bool wouldLoadAsNetscapePlugin(const String& url, const String& serviceType) ;
137 137
138 void setPersistedPluginWidget(Widget*); 138 void setPersistedPluginWidget(Widget*);
139 139
140 bool requestObjectInternal(const String& url, const String& mimeType, const Vector<String>& paramNames, const Vector<String>& paramValues);
141
140 mutable RefPtr<SharedPersistent<v8::Object>> m_pluginWrapper; 142 mutable RefPtr<SharedPersistent<v8::Object>> m_pluginWrapper;
141 bool m_needsWidgetUpdate; 143 bool m_needsWidgetUpdate;
142 bool m_shouldPreferPlugInsForImages; 144 bool m_shouldPreferPlugInsForImages;
143 // Represents |layoutObject() && layoutObject()->isEmbeddedObject() && 145 // Represents |layoutObject() && layoutObject()->isEmbeddedObject() &&
144 // !layoutEmbeddedItem().showsUnavailablePluginIndicator()|. We want to 146 // !layoutEmbeddedItem().showsUnavailablePluginIndicator()|. We want to
145 // avoid accessing |layoutObject()| in layoutObjectIsFocusable(). 147 // avoid accessing |layoutObject()| in layoutObjectIsFocusable().
146 bool m_pluginIsAvailable = false; 148 bool m_pluginIsAvailable = false;
147 149
148 // Normally the Widget is stored in HTMLFrameOwnerElement::m_widget. 150 // Normally the Widget is stored in HTMLFrameOwnerElement::m_widget.
149 // However, plugins can persist even when not rendered. In order to 151 // However, plugins can persist even when not rendered. In order to
150 // prevent confusing code which may assume that widget() != null 152 // prevent confusing code which may assume that widget() != null
151 // means the frame is active, we save off m_widget here while 153 // means the frame is active, we save off m_widget here while
152 // the plugin is persisting but not being displayed. 154 // the plugin is persisting but not being displayed.
153 Member<Widget> m_persistedPluginWidget; 155 Member<Widget> m_persistedPluginWidget;
154 }; 156 };
155 157
156 inline bool isHTMLPlugInElement(const HTMLElement& element) 158 inline bool isHTMLPlugInElement(const HTMLElement& element)
157 { 159 {
158 return element.isPluginElement(); 160 return element.isPluginElement();
159 } 161 }
160 162
161 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); 163 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement);
162 164
163 } // namespace blink 165 } // namespace blink
164 166
165 #endif // HTMLPlugInElement_h 167 #endif // HTMLPlugInElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698