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

Side by Side Diff: third_party/WebKit/Source/core/html/forms/ColorInputType.h

Issue 2435973002: INPUT element: code cleanup around setValue(). (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 explicit ColorInputType(HTMLInputElement&); 64 explicit ColorInputType(HTMLInputElement&);
65 InputTypeView* createView() override; 65 InputTypeView* createView() override;
66 ValueMode valueMode() const override; 66 ValueMode valueMode() const override;
67 void valueAttributeChanged() override; 67 void valueAttributeChanged() override;
68 void countUsage() override; 68 void countUsage() override;
69 const AtomicString& formControlType() const override; 69 const AtomicString& formControlType() const override;
70 bool supportsRequired() const override; 70 bool supportsRequired() const override;
71 String fallbackValue() const override; 71 String fallbackValue() const override;
72 String sanitizeValue(const String&) const override; 72 String sanitizeValue(const String&) const override;
73 void createShadowSubtree() override; 73 void createShadowSubtree() override;
74 void setValue(const String&, 74 void didSetValue(const String&, bool valueChanged) override;
75 bool valueChanged,
76 TextFieldEventBehavior) override;
77 void handleDOMActivateEvent(Event*) override; 75 void handleDOMActivateEvent(Event*) override;
78 void closePopupView() override; 76 void closePopupView() override;
79 bool shouldRespectListAttribute() override; 77 bool shouldRespectListAttribute() override;
80 bool typeMismatchFor(const String&) const override; 78 bool typeMismatchFor(const String&) const override;
81 void warnIfValueIsInvalid(const String&) const override; 79 void warnIfValueIsInvalid(const String&) const override;
82 void updateView() override; 80 void updateView() override;
83 AXObject* popupRootAXObject() override; 81 AXObject* popupRootAXObject() override;
84 82
85 Color valueAsColor() const; 83 Color valueAsColor() const;
86 void endColorChooser(); 84 void endColorChooser();
87 HTMLElement* shadowColorSwatch() const; 85 HTMLElement* shadowColorSwatch() const;
88 86
89 Member<ColorChooser> m_chooser; 87 Member<ColorChooser> m_chooser;
90 }; 88 };
91 89
92 } // namespace blink 90 } // namespace blink
93 91
94 #endif // ColorInputType_h 92 #endif // ColorInputType_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.cpp ('k') | third_party/WebKit/Source/core/html/forms/ColorInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698