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

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

Issue 2750833002: TextControlElement::selection() should return SelectionInDOMTree. (Closed)
Patch Set: Y 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/TextControlElement.h
diff --git a/third_party/WebKit/Source/core/html/TextControlElement.h b/third_party/WebKit/Source/core/html/TextControlElement.h
index 8667c1ff259bf92e819da9fa2c7c120b14fa2c63..b40cb00231ae8e399c1f297181019f09fd3fb167 100644
--- a/third_party/WebKit/Source/core/html/TextControlElement.h
+++ b/third_party/WebKit/Source/core/html/TextControlElement.h
@@ -28,13 +28,13 @@
#include "base/gtest_prod_util.h"
#include "core/CoreExport.h"
+#include "core/editing/SelectionTemplate.h"
#include "core/editing/VisiblePosition.h"
#include "core/html/HTMLFormControlElementWithState.h"
namespace blink {
class ExceptionState;
-class Range;
enum TextFieldSelectionDirection {
SelectionHasNoDirection,
@@ -100,7 +100,7 @@ class CORE_EXPORT TextControlElement : public HTMLFormControlElementWithState {
bool setSelectionRange(unsigned start,
unsigned end,
TextFieldSelectionDirection = SelectionHasNoDirection);
- Range* selection() const;
+ SelectionInDOMTree selection() const;
virtual bool supportsAutocapitalize() const = 0;
virtual const AtomicString& defaultAutocapitalize() const = 0;
« no previous file with comments | « third_party/WebKit/Source/core/editing/Editor.cpp ('k') | third_party/WebKit/Source/core/html/TextControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698