| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 public: | 42 public: |
| 43 static PassOwnPtr<InputType> create(HTMLInputElement*); | 43 static PassOwnPtr<InputType> create(HTMLInputElement*); |
| 44 virtual ~ColorInputType(); | 44 virtual ~ColorInputType(); |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 ColorInputType(HTMLInputElement* element) : InputType(element) { } | 47 ColorInputType(HTMLInputElement* element) : InputType(element) { } |
| 48 virtual bool isColorControl() const; | 48 virtual bool isColorControl() const; |
| 49 virtual const AtomicString& formControlType() const; | 49 virtual const AtomicString& formControlType() const; |
| 50 virtual bool supportsRequired() const; | 50 virtual bool supportsRequired() const; |
| 51 virtual String fallbackValue(); | 51 virtual String fallbackValue(); |
| 52 virtual String sanitizeValue(const String&); | 52 virtual String sanitizeValue(const String&) const; |
| 53 virtual Color valueAsColor() const; | 53 virtual Color valueAsColor() const; |
| 54 virtual void createShadowSubtree(); | 54 virtual void createShadowSubtree(); |
| 55 virtual void valueChanged(); | 55 virtual void valueChanged(); |
| 56 virtual void handleClickEvent(MouseEvent*); | 56 virtual void handleClickEvent(MouseEvent*); |
| 57 virtual void handleDOMActivateEvent(Event*); | 57 virtual void handleDOMActivateEvent(Event*); |
| 58 virtual void detach(); | 58 virtual void detach(); |
| 59 | 59 |
| 60 // ColorChooserClient implementation. | 60 // ColorChooserClient implementation. |
| 61 virtual void didChooseColor(const Color&); | 61 virtual void didChooseColor(const Color&); |
| 62 virtual bool isColorInputType() const; | 62 virtual bool isColorInputType() const; |
| 63 | 63 |
| 64 void cleanupColorChooserIfCurrentClient() const; | 64 void cleanupColorChooserIfCurrentClient() const; |
| 65 void updateColorSwatch(); | 65 void updateColorSwatch(); |
| 66 HTMLElement* shadowColorSwatch() const; | 66 HTMLElement* shadowColorSwatch() const; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace WebCore | 69 } // namespace WebCore |
| 70 | 70 |
| 71 #endif // ENABLE(INPUT_COLOR) | 71 #endif // ENABLE(INPUT_COLOR) |
| 72 | 72 |
| 73 #endif // ColorInputType_h | 73 #endif // ColorInputType_h |
| OLD | NEW |