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

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

Issue 931003002: Move and rename RenderPart to LayoutPart. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 16 matching lines...) Expand all
27 #include "core/html/HTMLFrameOwnerElement.h" 27 #include "core/html/HTMLFrameOwnerElement.h"
28 #include <v8.h> 28 #include <v8.h>
29 29
30 struct NPObject; 30 struct NPObject;
31 31
32 namespace blink { 32 namespace blink {
33 33
34 class HTMLImageLoader; 34 class HTMLImageLoader;
35 class PluginPlaceholder; 35 class PluginPlaceholder;
36 class RenderEmbeddedObject; 36 class RenderEmbeddedObject;
37 class RenderPart; 37 class LayoutPart;
38 class Widget; 38 class Widget;
39 39
40 enum PreferPlugInsForImagesOption { 40 enum PreferPlugInsForImagesOption {
41 ShouldPreferPlugInsForImages, 41 ShouldPreferPlugInsForImages,
42 ShouldNotPreferPlugInsForImages 42 ShouldNotPreferPlugInsForImages
43 }; 43 };
44 44
45 class HTMLPlugInElement : public HTMLFrameOwnerElement { 45 class HTMLPlugInElement : public HTMLFrameOwnerElement {
46 public: 46 public:
47 virtual ~HTMLPlugInElement(); 47 virtual ~HTMLPlugInElement();
48 virtual void trace(Visitor*) override; 48 virtual void trace(Visitor*) override;
49 #if ENABLE(OILPAN) 49 #if ENABLE(OILPAN)
50 virtual void disconnectContentFrame() override; 50 virtual void disconnectContentFrame() override;
51 void shouldDisposePlugin(); 51 void shouldDisposePlugin();
52 #endif 52 #endif
53 53
54 void resetInstance(); 54 void resetInstance();
55 55
56 // Returns the existing plugin widget, if there is one. 56 // Returns the existing plugin widget, if there is one.
57 Widget* existingPluginWidget() const; 57 Widget* existingPluginWidget() const;
58 58
59 // Returns the plugin widget, forcing layout and post-layout tasks 59 // Returns the plugin widget, forcing layout and post-layout tasks
60 // to happen synchronously (e.g. for JS bindings). 60 // to happen synchronously (e.g. for JS bindings).
61 // See also renderPartForJSBindings(). 61 // See also layoutPartForJSBindings().
62 Widget* pluginWidgetForJSBindings(); 62 Widget* pluginWidgetForJSBindings();
63 63
64 SharedPersistent<v8::Object>* pluginWrapper(); 64 SharedPersistent<v8::Object>* pluginWrapper();
65 NPObject* getNPObject(); 65 NPObject* getNPObject();
66 void setPluginFocus(bool focused); 66 void setPluginFocus(bool focused);
67 bool canProcessDrag() const; 67 bool canProcessDrag() const;
68 const String& url() const { return m_url; } 68 const String& url() const { return m_url; }
69 69
70 // Public for FrameView::addPartToUpdate() 70 // Public for FrameView::addPartToUpdate()
71 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } 71 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; }
(...skipping 14 matching lines...) Expand all
86 86
87 // Node functions: 87 // Node functions:
88 virtual void didMoveToNewDocument(Document& oldDocument) override; 88 virtual void didMoveToNewDocument(Document& oldDocument) override;
89 89
90 // Element functions: 90 // Element functions:
91 virtual bool isPresentationAttribute(const QualifiedName&) const override; 91 virtual bool isPresentationAttribute(const QualifiedName&) const override;
92 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override; 92 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override;
93 93
94 virtual bool hasFallbackContent() const; 94 virtual bool hasFallbackContent() const;
95 virtual bool useFallbackContent() const; 95 virtual bool useFallbackContent() const;
96 // Create or update the RenderPart and return it, triggering layout if 96 // Create or update the LayoutPart and return it, triggering layout if
97 // necessary. 97 // necessary.
98 virtual RenderPart* renderPartForJSBindings() const; 98 virtual LayoutPart* layoutPartForJSBindings() const;
99 99
100 bool isImageType(); 100 bool isImageType();
101 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI mages; } 101 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI mages; }
102 RenderEmbeddedObject* renderEmbeddedObject() const; 102 RenderEmbeddedObject* renderEmbeddedObject() const;
103 bool allowedToLoadFrameURL(const String& url); 103 bool allowedToLoadFrameURL(const String& url);
104 bool requestObject(const String& url, const String& mimeType, const Vector<S tring>& paramNames, const Vector<String>& paramValues); 104 bool requestObject(const String& url, const String& mimeType, const Vector<S tring>& paramNames, const Vector<String>& paramValues);
105 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback, bool& useFallback); 105 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback, bool& useFallback);
106 106
107 void dispatchErrorEvent(); 107 void dispatchErrorEvent();
108 void lazyReattachIfNeeded(); 108 void lazyReattachIfNeeded();
(...skipping 21 matching lines...) Expand all
130 virtual bool supportsFocus() const override final { return true; } 130 virtual bool supportsFocus() const override final { return true; }
131 virtual bool rendererIsFocusable() const override final; 131 virtual bool rendererIsFocusable() const override final;
132 virtual bool isKeyboardFocusable() const override final; 132 virtual bool isKeyboardFocusable() const override final;
133 virtual void didAddUserAgentShadowRoot(ShadowRoot&) override final; 133 virtual void didAddUserAgentShadowRoot(ShadowRoot&) override final;
134 virtual void willAddFirstAuthorShadowRoot() override final; 134 virtual void willAddFirstAuthorShadowRoot() override final;
135 135
136 // HTMLElement function: 136 // HTMLElement function:
137 virtual bool hasCustomFocusLogic() const override; 137 virtual bool hasCustomFocusLogic() const override;
138 virtual bool isPluginElement() const override final; 138 virtual bool isPluginElement() const override final;
139 139
140 // Return any existing RenderPart without triggering relayout, or 0 if it 140 // Return any existing LayoutPart without triggering relayout, or 0 if it
141 // doesn't yet exist. 141 // doesn't yet exist.
142 virtual RenderPart* existingRenderPart() const = 0; 142 virtual LayoutPart* existingLayoutPart() const = 0;
143 virtual void updateWidgetInternal() = 0; 143 virtual void updateWidgetInternal() = 0;
144 144
145 bool loadPlugin(const KURL&, const String& mimeType, const Vector<String>& p aramNames, const Vector<String>& paramValues, bool useFallback, bool requireRend erer); 145 bool loadPlugin(const KURL&, const String& mimeType, const Vector<String>& p aramNames, const Vector<String>& paramValues, bool useFallback, bool requireRend erer);
146 bool pluginIsLoadable(const KURL&, const String& mimeType); 146 bool pluginIsLoadable(const KURL&, const String& mimeType);
147 bool wouldLoadAsNetscapePlugin(const String& url, const String& serviceType) ; 147 bool wouldLoadAsNetscapePlugin(const String& url, const String& serviceType) ;
148 148
149 void setPersistedPluginWidget(Widget*); 149 void setPersistedPluginWidget(Widget*);
150 150
151 mutable RefPtr<SharedPersistent<v8::Object>> m_pluginWrapper; 151 mutable RefPtr<SharedPersistent<v8::Object>> m_pluginWrapper;
152 NPObject* m_NPObject; 152 NPObject* m_NPObject;
(...skipping 14 matching lines...) Expand all
167 inline bool isHTMLPlugInElement(const HTMLElement& element) 167 inline bool isHTMLPlugInElement(const HTMLElement& element)
168 { 168 {
169 return element.isPluginElement(); 169 return element.isPluginElement();
170 } 170 }
171 171
172 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); 172 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement);
173 173
174 } // namespace blink 174 } // namespace blink
175 175
176 #endif // HTMLPlugInElement_h 176 #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