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

Side by Side Diff: Source/WebCore/html/ImageInputType.h

Issue 12573007: Merge 145423 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 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/WebCore/html/HTMLInputElement.cpp ('k') | Source/WebCore/html/ImageInputType.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are 7 * modification, are permitted provided that the following conditions are
8 * met: 8 * met:
9 * 9 *
10 * * Redistributions of source code must retain the above copyright 10 * * Redistributions of source code must retain the above copyright
(...skipping 21 matching lines...) Expand all
32 32
33 #ifndef ImageInputType_h 33 #ifndef ImageInputType_h
34 #define ImageInputType_h 34 #define ImageInputType_h
35 35
36 #include "BaseButtonInputType.h" 36 #include "BaseButtonInputType.h"
37 #include "IntPoint.h" 37 #include "IntPoint.h"
38 #include <wtf/OwnPtr.h> 38 #include <wtf/OwnPtr.h>
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 class HTMLImageLoader;
43
44 class ImageInputType : public BaseButtonInputType { 42 class ImageInputType : public BaseButtonInputType {
45 public: 43 public:
46 static PassOwnPtr<InputType> create(HTMLInputElement*); 44 static PassOwnPtr<InputType> create(HTMLInputElement*);
47 45
48 private: 46 private:
49 ImageInputType(HTMLInputElement*); 47 ImageInputType(HTMLInputElement*);
50 virtual const AtomicString& formControlType() const OVERRIDE; 48 virtual const AtomicString& formControlType() const OVERRIDE;
51 virtual bool isFormDataAppendable() const OVERRIDE; 49 virtual bool isFormDataAppendable() const OVERRIDE;
52 virtual bool appendFormData(FormDataList&, bool) const OVERRIDE; 50 virtual bool appendFormData(FormDataList&, bool) const OVERRIDE;
53 virtual bool supportsValidation() const OVERRIDE; 51 virtual bool supportsValidation() const OVERRIDE;
54 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*) const OVERR IDE; 52 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*) const OVERR IDE;
55 virtual void handleDOMActivateEvent(Event*) OVERRIDE; 53 virtual void handleDOMActivateEvent(Event*) OVERRIDE;
56 virtual void altAttributeChanged() OVERRIDE; 54 virtual void altAttributeChanged() OVERRIDE;
57 virtual void srcAttributeChanged() OVERRIDE; 55 virtual void srcAttributeChanged() OVERRIDE;
58 virtual void attach() OVERRIDE; 56 virtual void attach() OVERRIDE;
59 virtual void willMoveToNewOwnerDocument() OVERRIDE;
60 virtual bool shouldRespectAlignAttribute() OVERRIDE; 57 virtual bool shouldRespectAlignAttribute() OVERRIDE;
61 virtual bool canBeSuccessfulSubmitButton() OVERRIDE; 58 virtual bool canBeSuccessfulSubmitButton() OVERRIDE;
62 virtual bool isImageButton() const OVERRIDE; 59 virtual bool isImageButton() const OVERRIDE;
63 virtual bool isEnumeratable() OVERRIDE; 60 virtual bool isEnumeratable() OVERRIDE;
64 virtual bool shouldRespectHeightAndWidthAttributes() OVERRIDE; 61 virtual bool shouldRespectHeightAndWidthAttributes() OVERRIDE;
65 virtual unsigned height() const OVERRIDE; 62 virtual unsigned height() const OVERRIDE;
66 virtual unsigned width() const OVERRIDE; 63 virtual unsigned width() const OVERRIDE;
67 64
68 OwnPtr<HTMLImageLoader> m_imageLoader;
69 IntPoint m_clickLocation; // Valid only during HTMLFormElement::prepareForSu bmission(). 65 IntPoint m_clickLocation; // Valid only during HTMLFormElement::prepareForSu bmission().
70 }; 66 };
71 67
72 } // namespace WebCore 68 } // namespace WebCore
73 69
74 #endif // ImageInputType_h 70 #endif // ImageInputType_h
OLDNEW
« no previous file with comments | « Source/WebCore/html/HTMLInputElement.cpp ('k') | Source/WebCore/html/ImageInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698