| 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 23 matching lines...) Expand all Loading... |
| 34 #define ImageInputType_h | 34 #define ImageInputType_h |
| 35 | 35 |
| 36 #include "core/html/forms/BaseButtonInputType.h" | 36 #include "core/html/forms/BaseButtonInputType.h" |
| 37 #include "platform/geometry/IntPoint.h" | 37 #include "platform/geometry/IntPoint.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class ImageInputType final : public BaseButtonInputType { | 41 class ImageInputType final : public BaseButtonInputType { |
| 42 public: | 42 public: |
| 43 static PassRefPtrWillBeRawPtr<InputType> create(HTMLInputElement&); | 43 static PassRefPtrWillBeRawPtr<InputType> create(HTMLInputElement&); |
| 44 virtual PassRefPtr<RenderStyle> customStyleForRenderer(PassRefPtr<RenderStyl
e>); | |
| 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; |
| 49 virtual bool isFormDataAppendable() const override; | 48 virtual bool isFormDataAppendable() const override; |
| 50 virtual bool appendFormData(FormDataList&, bool) const override; | 49 virtual bool appendFormData(FormDataList&, bool) const override; |
| 51 virtual String resultForDialogSubmit() const override; | 50 virtual String resultForDialogSubmit() const override; |
| 52 virtual bool supportsValidation() const override; | 51 virtual bool supportsValidation() const override; |
| 53 virtual RenderObject* createRenderer(RenderStyle*) const override; | 52 virtual RenderObject* createRenderer(RenderStyle*) const override; |
| 54 virtual void handleDOMActivateEvent(Event*) override; | 53 virtual void handleDOMActivateEvent(Event*) override; |
| 55 virtual void altAttributeChanged() override; | 54 virtual void altAttributeChanged() override; |
| 56 virtual void srcAttributeChanged() override; | 55 virtual void srcAttributeChanged() override; |
| 57 virtual void valueAttributeChanged() override; | |
| 58 virtual void startResourceLoading() override; | 56 virtual void startResourceLoading() override; |
| 59 virtual bool shouldRespectAlignAttribute() override; | 57 virtual bool shouldRespectAlignAttribute() override; |
| 60 virtual bool canBeSuccessfulSubmitButton() override; | 58 virtual bool canBeSuccessfulSubmitButton() override; |
| 61 virtual bool isEnumeratable() override; | 59 virtual bool isEnumeratable() override; |
| 62 virtual bool shouldRespectHeightAndWidthAttributes() override; | 60 virtual bool shouldRespectHeightAndWidthAttributes() override; |
| 63 virtual unsigned height() const override; | 61 virtual unsigned height() const override; |
| 64 virtual unsigned width() const override; | 62 virtual unsigned width() const override; |
| 65 virtual bool hasLegalLinkAttribute(const QualifiedName&) const override; | 63 virtual bool hasLegalLinkAttribute(const QualifiedName&) const override; |
| 66 virtual const QualifiedName& subResourceAttributeName() const override; | 64 virtual const QualifiedName& subResourceAttributeName() const override; |
| 67 virtual void ensureFallbackContent() override; | |
| 68 virtual void ensurePrimaryContent() override; | |
| 69 virtual void createShadowSubtree() override; | |
| 70 | |
| 71 void reattachFallbackContent(); | |
| 72 void setUseFallbackContent(); | |
| 73 | 65 |
| 74 IntPoint m_clickLocation; // Valid only during HTMLFormElement::prepareForSu
bmission(). | 66 IntPoint m_clickLocation; // Valid only during HTMLFormElement::prepareForSu
bmission(). |
| 75 bool m_useFallbackContent; | |
| 76 }; | 67 }; |
| 77 | 68 |
| 78 } // namespace blink | 69 } // namespace blink |
| 79 | 70 |
| 80 #endif // ImageInputType_h | 71 #endif // ImageInputType_h |
| OLD | NEW |