Chromium Code Reviews| Index: Source/core/html/HTMLTextFormControlElement.h |
| diff --git a/Source/core/html/HTMLTextFormControlElement.h b/Source/core/html/HTMLTextFormControlElement.h |
| index 403de83eea28b98e7b560dd8a8ed0336f897da55..474ed6238db567eeccc6bcb688e856f183c639e2 100644 |
| --- a/Source/core/html/HTMLTextFormControlElement.h |
| +++ b/Source/core/html/HTMLTextFormControlElement.h |
| @@ -42,6 +42,11 @@ class HTMLTextFormControlElement : public HTMLFormControlElementWithState { |
| public: |
| // Common flag for HTMLInputElement::tooLong() and HTMLTextAreaElement::tooLong(). |
| enum NeedsToCheckDirtyFlag {CheckDirtyFlag, IgnoreDirtyFlag}; |
| + // Option of setSelectionRange. |
| + enum FocusOption { |
| + Default, |
|
yosin_UTC9
2014/07/16 07:09:14
nit: Could you change |Default| to another what it
yoichio
2014/07/16 08:07:12
Done.
|
| + MustFocus |
| + }; |
| virtual ~HTMLTextFormControlElement(); |
| @@ -69,7 +74,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); |
| + void setSelectionRange(int start, int end, TextFieldSelectionDirection = SelectionHasNoDirection, FocusOption = Default); |
| PassRefPtrWillBeRawPtr<Range> selection() const; |
| virtual void dispatchFormControlChangeEvent() OVERRIDE FINAL; |