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

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

Issue 2733083004: Emit error events if the loading of an object element failed (Closed)
Patch Set: Created 3 years, 9 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
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 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 bool requestObject(const String& url, 98 bool requestObject(const String& url,
99 const String& mimeType, 99 const String& mimeType,
100 const Vector<String>& paramNames, 100 const Vector<String>& paramNames,
101 const Vector<String>& paramValues); 101 const Vector<String>& paramValues);
102 bool shouldUsePlugin(const KURL&, 102 bool shouldUsePlugin(const KURL&,
103 const String& mimeType, 103 const String& mimeType,
104 bool hasFallback, 104 bool hasFallback,
105 bool& useFallback); 105 bool& useFallback);
106 106
107 void dispatchErrorEvent(); 107 void dispatchErrorEvent();
108 bool isPlaceholder();
108 void lazyReattachIfNeeded(); 109 void lazyReattachIfNeeded();
109 110
110 String m_serviceType; 111 String m_serviceType;
111 String m_url; 112 String m_url;
112 KURL m_loadedUrl; 113 KURL m_loadedUrl;
113 Member<HTMLImageLoader> m_imageLoader; 114 Member<HTMLImageLoader> m_imageLoader;
114 bool m_isDelayingLoadEvent; 115 bool m_isDelayingLoadEvent;
115 116
116 private: 117 private:
117 // EventTarget overrides: 118 // EventTarget overrides:
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 184
184 inline bool isHTMLPlugInElement(const HTMLElement& element) { 185 inline bool isHTMLPlugInElement(const HTMLElement& element) {
185 return element.isPluginElement(); 186 return element.isPluginElement();
186 } 187 }
187 188
188 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); 189 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement);
189 190
190 } // namespace blink 191 } // namespace blink
191 192
192 #endif // HTMLPlugInElement_h 193 #endif // HTMLPlugInElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698