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 24 matching lines...) Expand all Loading... |
35 #include "core/html/forms/ColorChooserClient.h" | 35 #include "core/html/forms/ColorChooserClient.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class ColorChooser; | 39 class ColorChooser; |
40 | 40 |
41 class ColorInputType final : public BaseClickableWithKeyInputType, public ColorC
hooserClient { | 41 class ColorInputType final : public BaseClickableWithKeyInputType, public ColorC
hooserClient { |
42 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ColorInputType); | 42 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ColorInputType); |
43 public: | 43 public: |
44 static PassRefPtrWillBeRawPtr<InputType> create(HTMLInputElement&); | 44 static PassRefPtrWillBeRawPtr<InputType> create(HTMLInputElement&); |
45 virtual ~ColorInputType(); | 45 ~ColorInputType() override; |
46 DECLARE_VIRTUAL_TRACE(); | 46 DECLARE_VIRTUAL_TRACE(); |
47 | 47 |
48 // ColorChooserClient implementation. | 48 // ColorChooserClient implementation. |
49 void didChooseColor(const Color&) override; | 49 void didChooseColor(const Color&) override; |
50 void didEndChooser() override; | 50 void didEndChooser() override; |
51 Element& ownerElement() const override; | 51 Element& ownerElement() const override; |
52 IntRect elementRectRelativeToViewport() const override; | 52 IntRect elementRectRelativeToViewport() const override; |
53 Color currentColor() override; | 53 Color currentColor() override; |
54 bool shouldShowSuggestions() const override; | 54 bool shouldShowSuggestions() const override; |
55 Vector<ColorSuggestion> suggestions() const override; | 55 Vector<ColorSuggestion> suggestions() const override; |
(...skipping 19 matching lines...) Expand all Loading... |
75 Color valueAsColor() const; | 75 Color valueAsColor() const; |
76 void endColorChooser(); | 76 void endColorChooser(); |
77 HTMLElement* shadowColorSwatch() const; | 77 HTMLElement* shadowColorSwatch() const; |
78 | 78 |
79 OwnPtrWillBeMember<ColorChooser> m_chooser; | 79 OwnPtrWillBeMember<ColorChooser> m_chooser; |
80 }; | 80 }; |
81 | 81 |
82 } // namespace blink | 82 } // namespace blink |
83 | 83 |
84 #endif // ColorInputType_h | 84 #endif // ColorInputType_h |
OLD | NEW |