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

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

Issue 1756483005: Option, checkbox and radio should support ':default' selector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated as per review comments Created 4 years, 9 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 * 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 virtual String sanitizeUserInputValue(const String&) const; 141 virtual String sanitizeUserInputValue(const String&) const;
142 virtual void warnIfValueIsInvalid(const String&) const; 142 virtual void warnIfValueIsInvalid(const String&) const;
143 void warnIfValueIsInvalidAndElementIsVisible(const String&) const; 143 void warnIfValueIsInvalidAndElementIsVisible(const String&) const;
144 144
145 virtual bool isKeyboardFocusable() const; 145 virtual bool isKeyboardFocusable() const;
146 virtual bool shouldShowFocusRingOnMouseFocus() const; 146 virtual bool shouldShowFocusRingOnMouseFocus() const;
147 virtual void enableSecureTextInput(); 147 virtual void enableSecureTextInput();
148 virtual void disableSecureTextInput(); 148 virtual void disableSecureTextInput();
149 virtual void accessKeyAction(bool sendMouseEvents); 149 virtual void accessKeyAction(bool sendMouseEvents);
150 virtual bool canBeSuccessfulSubmitButton(); 150 virtual bool canBeSuccessfulSubmitButton();
151 virtual bool matchesDefaultPseudoClass();
151 152
152 // Miscellaneous functions 153 // Miscellaneous functions
153 154
154 virtual bool layoutObjectIsNeeded(); 155 virtual bool layoutObjectIsNeeded();
155 virtual void countUsage(); 156 virtual void countUsage();
156 virtual void sanitizeValueInResponseToMinOrMaxAttributeChange(); 157 virtual void sanitizeValueInResponseToMinOrMaxAttributeChange();
157 virtual bool shouldRespectAlignAttribute(); 158 virtual bool shouldRespectAlignAttribute();
158 virtual FileList* files(); 159 virtual FileList* files();
159 virtual void setFiles(FileList*); 160 virtual void setFiles(FileList*);
160 // Should return true if the given DragData has more than one dropped files. 161 // Should return true if the given DragData has more than one dropped files.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 StepRange createStepRange(AnyStepHandling, const Decimal& stepBaseDefault, c onst Decimal& minimumDefault, const Decimal& maximumDefault, const StepRange::St epDescription&) const; 233 StepRange createStepRange(AnyStepHandling, const Decimal& stepBaseDefault, c onst Decimal& minimumDefault, const Decimal& maximumDefault, const StepRange::St epDescription&) const;
233 void addWarningToConsole(const char* messageFormat, const String& value) con st; 234 void addWarningToConsole(const char* messageFormat, const String& value) con st;
234 235
235 private: 236 private:
236 // Helper for stepUp()/stepDown(). Adds step value * count to the current va lue. 237 // Helper for stepUp()/stepDown(). Adds step value * count to the current va lue.
237 void applyStep(const Decimal&, int count, AnyStepHandling, TextFieldEventBeh avior, ExceptionState&); 238 void applyStep(const Decimal&, int count, AnyStepHandling, TextFieldEventBeh avior, ExceptionState&);
238 }; 239 };
239 240
240 } // namespace blink 241 } // namespace blink
241 #endif 242 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698