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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 bool allowedToLoadFrameURL(const String& url); 90 bool allowedToLoadFrameURL(const String& url);
91 bool requestObject(const String& url, const String& mimeType, const Vector<S tring>& paramNames, const Vector<String>& paramValues); 91 bool requestObject(const String& url, const String& mimeType, const Vector<S tring>& paramNames, const Vector<String>& paramValues);
92 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback, bool& useFallback); 92 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback, bool& useFallback);
93 93
94 void dispatchErrorEvent(); 94 void dispatchErrorEvent();
95 void lazyReattachIfNeeded(); 95 void lazyReattachIfNeeded();
96 96
97 String m_serviceType; 97 String m_serviceType;
98 String m_url; 98 String m_url;
99 KURL m_loadedUrl; 99 KURL m_loadedUrl;
100 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; 100 Member<HTMLImageLoader> m_imageLoader;
101 bool m_isDelayingLoadEvent; 101 bool m_isDelayingLoadEvent;
102 102
103 private: 103 private:
104 // EventTarget functions: 104 // EventTarget functions:
105 void removeAllEventListeners() final; 105 void removeAllEventListeners() final;
106 106
107 // Node functions: 107 // Node functions:
108 bool canContainRangeEndPoint() const override { return false; } 108 bool canContainRangeEndPoint() const override { return false; }
109 bool willRespondToMouseClickEvents() final; 109 bool willRespondToMouseClickEvents() final;
110 void defaultEventHandler(Event*) final; 110 void defaultEventHandler(Event*) final;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 mutable RefPtr<SharedPersistent<v8::Object>> m_pluginWrapper; 142 mutable RefPtr<SharedPersistent<v8::Object>> m_pluginWrapper;
143 NPObject* m_NPObject; 143 NPObject* m_NPObject;
144 bool m_needsWidgetUpdate; 144 bool m_needsWidgetUpdate;
145 bool m_shouldPreferPlugInsForImages; 145 bool m_shouldPreferPlugInsForImages;
146 146
147 // Normally the Widget is stored in HTMLFrameOwnerElement::m_widget. 147 // Normally the Widget is stored in HTMLFrameOwnerElement::m_widget.
148 // However, plugins can persist even when not rendered. In order to 148 // However, plugins can persist even when not rendered. In order to
149 // prevent confusing code which may assume that widget() != null 149 // prevent confusing code which may assume that widget() != null
150 // means the frame is active, we save off m_widget here while 150 // means the frame is active, we save off m_widget here while
151 // the plugin is persisting but not being displayed. 151 // the plugin is persisting but not being displayed.
152 RefPtrWillBeMember<Widget> m_persistedPluginWidget; 152 Member<Widget> m_persistedPluginWidget;
153 }; 153 };
154 154
155 inline bool isHTMLPlugInElement(const HTMLElement& element) 155 inline bool isHTMLPlugInElement(const HTMLElement& element)
156 { 156 {
157 return element.isPluginElement(); 157 return element.isPluginElement();
158 } 158 }
159 159
160 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); 160 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement);
161 161
162 } // namespace blink 162 } // namespace blink
163 163
164 #endif // HTMLPlugInElement_h 164 #endif // HTMLPlugInElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698