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

Issue 2963573003: [TTS] Fix Bar text w/ selection modification (Closed)

Created:
3 years, 5 months ago by Donn Denman
Modified:
3 years, 5 months ago
Reviewers:
Theresa
CC:
chromium-reviews, twellington+watch_chromium.org, donnd+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[TTS] Fix Bar text w/ selection modification Fix issues with the Bar text not updating correctly when the selection is being modified by the user. There was a problem with ContentViewCore.getSelectedText not returning the most recent version of the selection, so now we rely on our own private member in CSSC that tracks the selection instead, except in the case when the selection is first established. Also do some minor cleanup of getBaseWebContents. BUG=735365 Review-Url: https://codereview.chromium.org/2963573003 Cr-Commit-Position: refs/heads/master@{#483241} Committed: https://chromium.googlesource.com/chromium/src/+/1fbe6dc80c6d1ebd7b20199a9b3f5dd270c8fb5f

Patch Set 1 #

Total comments: 3

Patch Set 2 : Removed usage of ContentViewCore.getSelectedText. #

Patch Set 3 : Added usage of ContentViewCore.getSelectedText back again. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -13 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java View 2 4 chunks +8 lines, -13 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
Donn Denman
Theresa, PTAL when convenient.
3 years, 5 months ago (2017-06-27 23:19:50 UTC) #4
Theresa
https://codereview.chromium.org/2963573003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java (right): https://codereview.chromium.org/2963573003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java#newcode254 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java:254: if (baseContentView != null) mSelectedText = baseContentView.getSelectedText(); Do we ...
3 years, 5 months ago (2017-06-27 23:52:40 UTC) #5
Donn Denman
Theresa, PTAL. Thanks! https://codereview.chromium.org/2963573003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java (right): https://codereview.chromium.org/2963573003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java#newcode253 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java:253: ContentViewCore baseContentView = getBaseContentView(); Removed this ...
3 years, 5 months ago (2017-06-28 18:45:04 UTC) #8
Theresa
lgtm
3 years, 5 months ago (2017-06-28 18:49:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2963573003/20001
3 years, 5 months ago (2017-06-28 19:18:13 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/327766)
3 years, 5 months ago (2017-06-28 21:50:28 UTC) #13
Donn Denman
Theresa, there were two test failures that appeared to be due to the mSelectedText member ...
3 years, 5 months ago (2017-06-28 23:42:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2963573003/40001
3 years, 5 months ago (2017-06-28 23:42:34 UTC) #18
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 01:26:24 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/1fbe6dc80c6d1ebd7b20199a9b3f...

Powered by Google App Engine
This is Rietveld 408576698