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

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

Issue 596773002: Re-attach plugin renderers in the standard way. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 2 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 | « Source/core/html/HTMLObjectElement.cpp ('k') | 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual RenderWidget* renderWidgetForJSBindings() const; 83 virtual RenderWidget* renderWidgetForJSBindings() const;
84 84
85 bool isImageType(); 85 bool isImageType();
86 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI mages; } 86 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI mages; }
87 RenderEmbeddedObject* renderEmbeddedObject() const; 87 RenderEmbeddedObject* renderEmbeddedObject() const;
88 bool allowedToLoadFrameURL(const String& url); 88 bool allowedToLoadFrameURL(const String& url);
89 bool requestObject(const String& url, const String& mimeType, const Vector<S tring>& paramNames, const Vector<String>& paramValues); 89 bool requestObject(const String& url, const String& mimeType, const Vector<S tring>& paramNames, const Vector<String>& paramValues);
90 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback, bool& useFallback); 90 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback, bool& useFallback);
91 91
92 void dispatchErrorEvent(); 92 void dispatchErrorEvent();
93 void lazyReattachIfNeeded();
93 94
94 String m_serviceType; 95 String m_serviceType;
95 String m_url; 96 String m_url;
96 KURL m_loadedUrl; 97 KURL m_loadedUrl;
97 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; 98 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader;
98 bool m_isDelayingLoadEvent; 99 bool m_isDelayingLoadEvent;
99 100
100 private: 101 private:
101 // EventTarget functions: 102 // EventTarget functions:
102 virtual void removeAllEventListeners() OVERRIDE FINAL; 103 virtual void removeAllEventListeners() OVERRIDE FINAL;
103 104
104 // Node functions: 105 // Node functions:
105 virtual bool canContainRangeEndPoint() const OVERRIDE { return false; } 106 virtual bool canContainRangeEndPoint() const OVERRIDE { return false; }
106 virtual bool willRespondToMouseClickEvents() OVERRIDE FINAL; 107 virtual bool willRespondToMouseClickEvents() OVERRIDE FINAL;
107 virtual void defaultEventHandler(Event*) OVERRIDE FINAL; 108 virtual void defaultEventHandler(Event*) OVERRIDE FINAL;
108 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE FINAL; 109 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE FINAL;
109 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE FINAL; 110 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE FINAL;
110 virtual void finishParsingChildren() OVERRIDE FINAL; 111 virtual void finishParsingChildren() OVERRIDE FINAL;
111 112
112 // Element functions: 113 // Element functions:
113 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 114 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
114 virtual void willRecalcStyle(StyleRecalcChange) OVERRIDE FINAL;
115 virtual bool supportsFocus() const OVERRIDE FINAL { return true; } 115 virtual bool supportsFocus() const OVERRIDE FINAL { return true; }
116 virtual bool rendererIsFocusable() const OVERRIDE FINAL; 116 virtual bool rendererIsFocusable() const OVERRIDE FINAL;
117 virtual bool isKeyboardFocusable() const OVERRIDE FINAL; 117 virtual bool isKeyboardFocusable() const OVERRIDE FINAL;
118 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE FINAL; 118 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE FINAL;
119 virtual void willAddFirstAuthorShadowRoot() OVERRIDE FINAL; 119 virtual void willAddFirstAuthorShadowRoot() OVERRIDE FINAL;
120 120
121 // HTMLElement function: 121 // HTMLElement function:
122 virtual bool hasCustomFocusLogic() const OVERRIDE; 122 virtual bool hasCustomFocusLogic() const OVERRIDE;
123 virtual bool isPluginElement() const OVERRIDE FINAL; 123 virtual bool isPluginElement() const OVERRIDE FINAL;
124 124
(...skipping 24 matching lines...) Expand all
149 inline bool isHTMLPlugInElement(const HTMLElement& element) 149 inline bool isHTMLPlugInElement(const HTMLElement& element)
150 { 150 {
151 return element.isPluginElement(); 151 return element.isPluginElement();
152 } 152 }
153 153
154 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); 154 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement);
155 155
156 } // namespace blink 156 } // namespace blink
157 157
158 #endif // HTMLPlugInElement_h 158 #endif // HTMLPlugInElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLObjectElement.cpp ('k') | Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698