OLD | NEW |
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 17 matching lines...) Expand all Loading... |
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
31 */ | 31 */ |
32 | 32 |
33 #ifndef ImageInputType_h | 33 #ifndef ImageInputType_h |
34 #define ImageInputType_h | 34 #define ImageInputType_h |
35 | 35 |
36 #include "core/html/BaseButtonInputType.h" | 36 #include "core/html/BaseButtonInputType.h" |
37 #include "core/platform/graphics/IntPoint.h" | 37 #include "core/platform/graphics/IntPoint.h" |
38 #include <wtf/OwnPtr.h> | |
39 | 38 |
40 namespace WebCore { | 39 namespace WebCore { |
41 | 40 |
42 class ImageInputType : public BaseButtonInputType { | 41 class ImageInputType : public BaseButtonInputType { |
43 public: | 42 public: |
44 static PassOwnPtr<InputType> create(HTMLInputElement*); | 43 static PassOwnPtr<InputType> create(HTMLInputElement*); |
45 | 44 |
46 private: | 45 private: |
47 ImageInputType(HTMLInputElement*); | 46 ImageInputType(HTMLInputElement*); |
48 virtual const AtomicString& formControlType() const OVERRIDE; | 47 virtual const AtomicString& formControlType() const OVERRIDE; |
(...skipping 12 matching lines...) Expand all Loading... |
61 virtual bool shouldRespectHeightAndWidthAttributes() OVERRIDE; | 60 virtual bool shouldRespectHeightAndWidthAttributes() OVERRIDE; |
62 virtual unsigned height() const OVERRIDE; | 61 virtual unsigned height() const OVERRIDE; |
63 virtual unsigned width() const OVERRIDE; | 62 virtual unsigned width() const OVERRIDE; |
64 | 63 |
65 IntPoint m_clickLocation; // Valid only during HTMLFormElement::prepareForSu
bmission(). | 64 IntPoint m_clickLocation; // Valid only during HTMLFormElement::prepareForSu
bmission(). |
66 }; | 65 }; |
67 | 66 |
68 } // namespace WebCore | 67 } // namespace WebCore |
69 | 68 |
70 #endif // ImageInputType_h | 69 #endif // ImageInputType_h |
OLD | NEW |