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

Issue 2518503004: [TTS] Fix Bar text showing blank after startup. (Closed)

Created:
4 years, 1 month ago by Donn Denman
Modified:
4 years ago
Reviewers:
mdjones, Theresa
CC:
chromium-reviews, mdjones+watch_chromium.org, donnd+watch_chromium.org, agrieve+watch_chromium.org, Theresa, PEConn
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[TTS] Fix Bar text showing blank after startup. The Bar has main bar text that can either show the Search Term or the Context. When the user taps we show the Context first, and the Search Term is not yet visible, so calculations based on its size are invalid. We now check to see if the Search Term text is visible before using any attribute of it. BUG=658771 Committed: https://crrev.com/aa73340fc20421e8a9816de1033f6c553cb28983 Cr-Commit-Position: refs/heads/master@{#434723}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Simplify to just check opacity of the bar text. No changes from Overlay needed now! #

Patch Set 3 : Update comments only. #

Total comments: 4

Patch Set 4 : Responded to Matt's comments, removed some checks that were not needed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -26 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchBarControl.java View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/android/compositor/layer/contextual_search_layer.h View 1 1 chunk +10 lines, -10 lines 0 comments Download
M chrome/browser/android/compositor/layer/contextual_search_layer.cc View 1 2 3 3 chunks +21 lines, -14 lines 0 comments Download

Messages

Total messages: 36 (21 generated)
Donn Denman
Matt, PTAL. Thanks!
4 years, 1 month ago (2016-11-19 08:55:45 UTC) #3
Donn Denman
All, another simpler approach to consider would be to just initialize the main Bar Text ...
4 years, 1 month ago (2016-11-20 23:17:47 UTC) #4
mdjones
If you want to keep the current approach, it looks like you could do it ...
4 years, 1 month ago (2016-11-21 17:11:11 UTC) #5
Donn Denman
Matt, PTAL. Thanks for the great suggestion to just check opacity each time -- for ...
4 years, 1 month ago (2016-11-21 23:48:50 UTC) #7
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/2518503004/40001
4 years, 1 month ago (2016-11-22 02:24:35 UTC) #13
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 1 month ago (2016-11-22 02:24:37 UTC) #15
mdjones
https://codereview.chromium.org/2518503004/diff/40001/chrome/browser/android/compositor/layer/contextual_search_layer.cc File chrome/browser/android/compositor/layer/contextual_search_layer.cc (right): https://codereview.chromium.org/2518503004/diff/40001/chrome/browser/android/compositor/layer/contextual_search_layer.cc#newcode244 chrome/browser/android/compositor/layer/contextual_search_layer.cc:244: SetupTextLayer(search_bar_top, search_bar_height, Unless there was a reason not to, ...
4 years ago (2016-11-22 16:37:50 UTC) #16
Donn Denman
Matt, PTAL. https://codereview.chromium.org/2518503004/diff/40001/chrome/browser/android/compositor/layer/contextual_search_layer.cc File chrome/browser/android/compositor/layer/contextual_search_layer.cc (right): https://codereview.chromium.org/2518503004/diff/40001/chrome/browser/android/compositor/layer/contextual_search_layer.cc#newcode244 chrome/browser/android/compositor/layer/contextual_search_layer.cc:244: SetupTextLayer(search_bar_top, search_bar_height, On 2016/11/22 16:37:49, mdjones wrote: ...
4 years ago (2016-11-28 17:58:28 UTC) #18
mdjones
lgtm
4 years ago (2016-11-28 18:25:37 UTC) #21
Theresa
lgtm
4 years ago (2016-11-28 18:39:41 UTC) #25
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/2518503004/60001
4 years ago (2016-11-28 18:42:27 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years ago (2016-11-28 20:44:55 UTC) #29
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/2518503004/60001
4 years ago (2016-11-28 20:48:39 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-28 21:44:15 UTC) #34
commit-bot: I haz the power
4 years ago (2016-11-28 21:48:44 UTC) #36
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/aa73340fc20421e8a9816de1033f6c553cb28983
Cr-Commit-Position: refs/heads/master@{#434723}

Powered by Google App Engine
This is Rietveld 408576698