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

Unified Diff: third_party/WebKit/Source/core/editing/InputMethodController.cpp

Issue 2916493002: Make SelectionState enum class (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/LayoutSelection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/InputMethodController.cpp
diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.cpp b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
index fb9871d6d8bd255fc602cb581bc9e7afe45390d1..6cc9533dcf124e0874da6bff9815d399c0a75fca 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
@@ -928,7 +928,7 @@ void InputMethodController::DeleteSurroundingText(int before, int after) {
int selection_start = static_cast<int>(selection_offsets.Start());
int selection_end = static_cast<int>(selection_offsets.end());
- // Select the text to be deleted before selectionStart.
+ // Select the text to be deleted before SelectionState::kStart.
if (before > 0 && selection_start > 0) {
// In case of exceeding the left boundary.
const int start = std::max(selection_start - before, 0);
@@ -952,7 +952,7 @@ void InputMethodController::DeleteSurroundingText(int before, int after) {
selection_start = adjusted_start;
}
- // Select the text to be deleted after selectionEnd.
+ // Select the text to be deleted after SelectionState::kEnd.
if (after > 0) {
// Adjust the deleted range in case of exceeding the right boundary.
const PlainTextRange range(0, selection_end + after);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/LayoutSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698