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

Side by Side Diff: third_party/WebKit/public/web/WebInputMethodController.h

Issue 2910223003: [refactor] - Rename and Move WebWidget::CaretOrSelectionRange to WebInputMethodController::GetSelec… (Closed)
Patch Set: Rebase Created 3 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | third_party/WebKit/public/web/WebView.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebInputMethodController_h 5 #ifndef WebInputMethodController_h
6 #define WebInputMethodController_h 6 #define WebInputMethodController_h
7 7
8 #include "public/platform/WebTextInputInfo.h" 8 #include "public/platform/WebTextInputInfo.h"
9 #include "WebCompositionUnderline.h" 9 #include "WebCompositionUnderline.h"
10 #include "WebTextInputType.h" 10 #include "WebTextInputType.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 ConfirmCompositionBehavior selection_behavior) = 0; 53 ConfirmCompositionBehavior selection_behavior) = 0;
54 54
55 // Returns information about the current text input of this controller. Note 55 // Returns information about the current text input of this controller. Note
56 // that this query can be expensive for long fields, as it returns the 56 // that this query can be expensive for long fields, as it returns the
57 // plain-text representation of the current editable element. Consider using 57 // plain-text representation of the current editable element. Consider using
58 // the lighter-weight textInputType() when appropriate. 58 // the lighter-weight textInputType() when appropriate.
59 virtual WebTextInputInfo TextInputInfo() { return WebTextInputInfo(); } 59 virtual WebTextInputInfo TextInputInfo() { return WebTextInputInfo(); }
60 60
61 // Returns the type of current text input of this controller. 61 // Returns the type of current text input of this controller.
62 virtual WebTextInputType TextInputType() { return kWebTextInputTypeNone; } 62 virtual WebTextInputType TextInputType() { return kWebTextInputTypeNone; }
63
64 // Fetch the current selection range of this frame.
65 virtual WebRange GetSelectionOffsets() const = 0;
63 }; 66 };
64 67
65 } // namespace blink 68 } // namespace blink
66 #endif 69 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | third_party/WebKit/public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698