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

Unified Diff: third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h

Issue 2268243002: Remove SelectionOption argument of HTMLTextFormControlElement::setSelectionRange(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove SelectionOption argument of HTMLTextFormControlElement::setSelectionRange(). Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h
index b2adc38dccc0704d661e9154de91501eb11f12f8..55e3f2008a0723e4f33e0f242ebab0732b41bba0 100644
--- a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h
@@ -43,12 +43,6 @@ public:
// Common flag for HTMLInputElement::tooLong(), HTMLTextAreaElement::tooLong(),
// HTMLInputElement::tooShort() and HTMLTextAreaElement::tooShort().
enum NeedsToCheckDirtyFlag {CheckDirtyFlag, IgnoreDirtyFlag};
- // Option of setSelectionRange.
- enum SelectionOption {
- ChangeSelectionAndFocus,
- ChangeSelectionIfFocused,
- NotChangeSelection
- };
~HTMLTextFormControlElement() override;
@@ -77,7 +71,7 @@ public:
virtual void setRangeText(const String& replacement, ExceptionState&);
virtual void setRangeText(const String& replacement, unsigned start, unsigned end, const String& selectionMode, ExceptionState&);
void setSelectionRange(int start, int end, const String& direction);
- void setSelectionRange(int start, int end, TextFieldSelectionDirection = SelectionHasNoDirection, NeedToDispatchSelectEvent = DispatchSelectEvent, SelectionOption = ChangeSelectionIfFocused);
+ void setSelectionRange(int start, int end, TextFieldSelectionDirection = SelectionHasNoDirection, NeedToDispatchSelectEvent = DispatchSelectEvent);
Range* selection() const;
virtual bool supportsAutocapitalize() const = 0;

Powered by Google App Engine
This is Rietveld 408576698