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

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

Powered by Google App Engine
This is Rietveld 408576698