commit | f7c2bc27dae5cc204a9dbbe89809ed7f7ebe265a | [log] [tgz] |
---|---|---|
author | Keith Lee <[email protected]> | Mon Jul 27 23:18:31 2020 |
committer | Commit Bot <[email protected]> | Mon Jul 27 23:18:31 2020 |
tree | f39a40634acc7e31b2522fd2e8badf37da2c5654 | |
parent | a49b7e13f8c92757ede3533841bca4f3cc68e162 [diff] [blame] |
Implement SetAutocorrectRange and GetAutocorrectCharacterBounds function for Textfields. The GetAutocorrectCharacterBounds function returns the location of the autocorrect word as a gfx::Rect object. Change-Id: I214e8eb506b9456114496b71be87dd0a61bf38e0 Bug: 1108170 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2251638 Reviewed-by: Scott Violet <[email protected]> Reviewed-by: Mitsuru Oshima <[email protected]> Reviewed-by: Yuichiro Hanada <[email protected]> Reviewed-by: Darren Shen <[email protected]> Commit-Queue: Keith Lee <[email protected]> Cr-Commit-Position: refs/heads/master@{#792056}
diff --git a/components/exo/text_input.cc b/components/exo/text_input.cc index 370a77ee9..50e272f 100644 --- a/components/exo/text_input.cc +++ b/components/exo/text_input.cc
@@ -324,6 +324,12 @@ return false; } +gfx::Rect TextInput::GetAutocorrectCharacterBounds() const { + // TODO(https://crbug.com/952757): Implement this method. + NOTIMPLEMENTED_LOG_ONCE(); + return gfx::Rect(); +} + // TODO(crbug.com/1091088) Implement setAutocorrectRange bool TextInput::SetAutocorrectRange(const base::string16& autocorrect_text, const gfx::Range& range) {