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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLPlugInElement.cpp ('k') | Source/core/html/HTMLPlugInImageElement.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) 2008, 2009, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 return mimeType; 68 return mimeType;
69 } 69 }
70 70
71 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI mages; } 71 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI mages; }
72 72
73 // Public for FrameView::addWidgetToUpdate() 73 // Public for FrameView::addWidgetToUpdate()
74 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } 74 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; }
75 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne edsWidgetUpdate; } 75 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne edsWidgetUpdate; }
76 76
77 protected: 77 protected:
78 HTMLPlugInImageElement(const QualifiedName& tagName, Document*, bool created ByParser, PreferPlugInsForImagesOption); 78 HTMLPlugInImageElement(const QualifiedName& tagName, Document&, bool created ByParser, PreferPlugInsForImagesOption);
79 79
80 bool isImageType(); 80 bool isImageType();
81 81
82 OwnPtr<HTMLImageLoader> m_imageLoader; 82 OwnPtr<HTMLImageLoader> m_imageLoader;
83 String m_serviceType; 83 String m_serviceType;
84 String m_url; 84 String m_url;
85 KURL m_loadedUrl; 85 KURL m_loadedUrl;
86 86
87 static void updateWidgetCallback(Node*); 87 static void updateWidgetCallback(Node*);
88 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 88 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 ASSERT_WITH_SECURITY_IMPLICATION(plugInElement->isPlugInImageElement()); 133 ASSERT_WITH_SECURITY_IMPLICATION(plugInElement->isPlugInImageElement());
134 return static_cast<const HTMLPlugInImageElement*>(plugInElement); 134 return static_cast<const HTMLPlugInImageElement*>(plugInElement);
135 } 135 }
136 136
137 // This will catch anyone doing an unnecessary cast. 137 // This will catch anyone doing an unnecessary cast.
138 void toHTMLPlugInImageElement(const HTMLPlugInImageElement*); 138 void toHTMLPlugInImageElement(const HTMLPlugInImageElement*);
139 139
140 } // namespace WebCore 140 } // namespace WebCore
141 141
142 #endif // HTMLPlugInImageElement_h 142 #endif // HTMLPlugInImageElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLPlugInElement.cpp ('k') | Source/core/html/HTMLPlugInImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698