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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 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/HTMLIFrameElement.h ('k') | Source/core/html/HTMLInputElement.h » ('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, 2008, 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2008, 2010 Apple Inc. All rights reserved.
5 * Copyright (C) 2010 Google Inc. All rights reserved. 5 * Copyright (C) 2010 Google Inc. All rights 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 19 matching lines...) Expand all
30 #include "platform/graphics/GraphicsTypes.h" 30 #include "platform/graphics/GraphicsTypes.h"
31 #include "wtf/WeakPtr.h" 31 #include "wtf/WeakPtr.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class HTMLFormElement; 35 class HTMLFormElement;
36 class ImageCandidate; 36 class ImageCandidate;
37 class MediaQueryList; 37 class MediaQueryList;
38 38
39 class HTMLImageElement FINAL : public HTMLElement, public CanvasImageSource { 39 class HTMLImageElement FINAL : public HTMLElement, public CanvasImageSource {
40 DEFINE_WRAPPERTYPEINFO();
40 public: 41 public:
41 class ViewportChangeListener; 42 class ViewportChangeListener;
42 43
43 static PassRefPtrWillBeRawPtr<HTMLImageElement> create(Document&); 44 static PassRefPtrWillBeRawPtr<HTMLImageElement> create(Document&);
44 static PassRefPtrWillBeRawPtr<HTMLImageElement> create(Document&, HTMLFormEl ement*, bool createdByParser); 45 static PassRefPtrWillBeRawPtr<HTMLImageElement> create(Document&, HTMLFormEl ement*, bool createdByParser);
45 static PassRefPtrWillBeRawPtr<HTMLImageElement> createForJSConstructor(Docum ent&, int width, int height); 46 static PassRefPtrWillBeRawPtr<HTMLImageElement> createForJSConstructor(Docum ent&, int width, int height);
46 47
47 virtual ~HTMLImageElement(); 48 virtual ~HTMLImageElement();
48 virtual void trace(Visitor*) OVERRIDE; 49 virtual void trace(Visitor*) OVERRIDE;
49 50
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 AtomicString m_bestFitImageURL; 147 AtomicString m_bestFitImageURL;
147 float m_imageDevicePixelRatio; 148 float m_imageDevicePixelRatio;
148 unsigned m_formWasSetByParser : 1; 149 unsigned m_formWasSetByParser : 1;
149 unsigned m_elementCreatedByParser : 1; 150 unsigned m_elementCreatedByParser : 1;
150 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for the picked resource. 151 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for the picked resource.
151 unsigned m_intrinsicSizingViewportDependant : 1; 152 unsigned m_intrinsicSizingViewportDependant : 1;
152 // Effective size is viewport dependant if the sizes attribute's effective s ize used v* length units. 153 // Effective size is viewport dependant if the sizes attribute's effective s ize used v* length units.
153 unsigned m_effectiveSizeViewportDependant : 1; 154 unsigned m_effectiveSizeViewportDependant : 1;
154 }; 155 };
155 156
156 } //namespace 157 } // namespace blink
157 158
158 #endif 159 #endif // HTMLImageElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLIFrameElement.h ('k') | Source/core/html/HTMLInputElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698