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

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

Issue 2735633006: INPUT/TEXTAREA elements: Dispatch 'select' event only if text selection is changed. (Closed)
Patch Set: Remove throttling Created 3 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 6 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 int size() const; 115 int size() const;
116 bool sizeShouldIncludeDecoration(int& preferredSize) const; 116 bool sizeShouldIncludeDecoration(int& preferredSize) const;
117 117
118 void setType(const AtomicString&); 118 void setType(const AtomicString&);
119 119
120 String value() const override; 120 String value() const override;
121 void setValue(const String&, 121 void setValue(const String&,
122 ExceptionState&, 122 ExceptionState&,
123 TextFieldEventBehavior = DispatchNoEvent); 123 TextFieldEventBehavior = DispatchNoEvent);
124 void setValue(const String&, 124 void setValue(const String&,
125 TextFieldEventBehavior = DispatchNoEvent) override; 125 TextFieldEventBehavior = DispatchNoEvent,
126 TextControlSetValueSelection =
127 TextControlSetValueSelection::kSetSelectionToEnd) override;
126 void setValueForUser(const String&); 128 void setValueForUser(const String&);
127 // Update the value, and clear hasDirtyValue() flag. 129 // Update the value, and clear hasDirtyValue() flag.
128 void setNonDirtyValue(const String&); 130 void setNonDirtyValue(const String&);
129 // Checks if the specified string would be a valid value. 131 // Checks if the specified string would be a valid value.
130 // We should not call this for types with no string value such as CHECKBOX and 132 // We should not call this for types with no string value such as CHECKBOX and
131 // RADIO. 133 // RADIO.
132 bool isValidValue(const String&) const; 134 bool isValidValue(const String&) const;
133 bool hasDirtyValue() const; 135 bool hasDirtyValue() const;
134 136
135 String sanitizeValue(const String&) const; 137 String sanitizeValue(const String&) const;
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // assumes that it lives as long as its owning element lives. If we move the 427 // assumes that it lives as long as its owning element lives. If we move the
426 // loader into the ImageInput object we may delete the loader while this 428 // loader into the ImageInput object we may delete the loader while this
427 // element lives on. 429 // element lives on.
428 Member<HTMLImageLoader> m_imageLoader; 430 Member<HTMLImageLoader> m_imageLoader;
429 Member<ListAttributeTargetObserver> m_listAttributeTargetObserver; 431 Member<ListAttributeTargetObserver> m_listAttributeTargetObserver;
430 }; 432 };
431 433
432 } // namespace blink 434 } // namespace blink
433 435
434 #endif // HTMLInputElement_h 436 #endif // HTMLInputElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698