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

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

Issue 2926043002: Rename PlainText::end() to PlainText::End() (Closed)
Patch Set: Created 3 years, 6 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/InputMethodControllerTest.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 1f2e2e9e8ac8dd2c8bfbcbf7d69b3ba964fcd08f..33b2bde8a886a99e309fa04f1f569ce2cb6c8739 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
@@ -393,7 +393,7 @@ bool InputMethodController::FinishComposingText(
Clear();
- if (!MoveCaret(composition_range.end()))
+ if (!MoveCaret(composition_range.End()))
return false;
DispatchCompositionEndEvent(GetFrame(), composing);
@@ -891,7 +891,7 @@ void InputMethodController::ExtendSelectionAndDelete(int before, int after) {
do {
if (!SetSelectionOffsets(PlainTextRange(
std::max(static_cast<int>(selection_offsets.Start()) - before, 0),
- selection_offsets.end() + after)))
+ selection_offsets.End() + after)))
return;
if (before == 0)
break;
@@ -929,7 +929,7 @@ void InputMethodController::DeleteSurroundingText(int before, int after) {
if (!root_editable_element)
return;
int selection_start = static_cast<int>(selection_offsets.Start());
- int selection_end = static_cast<int>(selection_offsets.end());
+ int selection_end = static_cast<int>(selection_offsets.End());
// Select the text to be deleted before SelectionState::kStart.
if (before > 0 && selection_start > 0) {
@@ -966,7 +966,7 @@ void InputMethodController::DeleteSurroundingText(int before, int after) {
if (valid_range.IsNull())
return;
const int end =
- PlainTextRange::Create(*root_editable_element, valid_range).end();
+ PlainTextRange::Create(*root_editable_element, valid_range).End();
const Position& position = valid_range.EndPosition();
// Adjust the end of selection for multi-code text. TODO(yabinh): Adjustment
@@ -1008,7 +1008,7 @@ void InputMethodController::DeleteSurroundingTextInCodePoints(int before,
return DeleteSurroundingText(before, after);
const int selection_start = static_cast<int>(selection_offsets.Start());
- const int selection_end = static_cast<int>(selection_offsets.end());
+ const int selection_end = static_cast<int>(selection_offsets.End());
const int before_length =
CalculateBeforeDeletionLengthsInCodePoints(text, before, selection_start);
@@ -1069,7 +1069,7 @@ WebTextInputInfo InputMethodController::TextInputInfo() const {
PlainTextRange::Create(*element, first_range));
if (plain_text_range.IsNotNull()) {
info.selection_start = plain_text_range.Start();
- info.selection_end = plain_text_range.end();
+ info.selection_end = plain_text_range.End();
}
}
@@ -1078,7 +1078,7 @@ WebTextInputInfo InputMethodController::TextInputInfo() const {
PlainTextRange plain_text_range(PlainTextRange::Create(*element, range));
if (plain_text_range.IsNotNull()) {
info.composition_start = plain_text_range.Start();
- info.composition_end = plain_text_range.end();
+ info.composition_end = plain_text_range.End();
}
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698