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

Issue 302453002: New animation for the origin chip URL showing/hiding. (Closed)

Created:
6 years, 7 months ago by Peter Kasting
Modified:
6 years, 6 months ago
Reviewers:
Justin Donnelly
CC:
chromium-reviews, tfarina, James Su
Visibility:
Public.

Description

New animation for the origin chip URL showing/hiding. When the chip is hidden, we instantly show the entire omnibox text, aligned so that the hostname is in the same place it was in the chip, and clipped to just have the hostname visible. Then we animate moving the alignment over to the normal omnibox text position (i.e. just after the location icon) while expanding the clip to gradually reveal the whole text. We also crossfade the selection colors from the chip colors to the standard omnibox ones. This also: * Animates correctly when the hostname is not at the beginning of the origin chip (i.e. for EV certs) * Properly reverses the animation if the user changes state in the middle (hard to see with quick animations, but looks nicer if we slow them down or with very large animation distances) * Fixes dropping characters during animation (because the real omnibox is visible and focused, and can respond correctly to keypresses) * Fixes animations improperly running across tab switches * Cleans up some unused origin chip code Also tested in RTL mode. BUG=363681, 365818, 374251 TEST=With the origin chip on, showing and hiding the URL should animate much more quickly and cleanly Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274305

Patch Set 1 #

Patch Set 2 : Add trailing edge animation #

Patch Set 3 : Bugfixes and more animations #

Total comments: 17

Patch Set 4 : Review comments + bugfixes #

Patch Set 5 : Resync #

Patch Set 6 : Resync, part 2 #

Patch Set 7 : Fix test failure by checking for NULL extension #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+562 lines, -322 lines) Patch
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_controller.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/test_toolbar_model.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/toolbar/test_toolbar_model.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model.h View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_impl.h View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_impl.cc View 1 2 3 4 chunks +15 lines, -19 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 3 3 chunks +49 lines, -6 lines 1 comment Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 19 chunks +242 lines, -103 lines 0 comments Download
M chrome/browser/ui/views/location_bar/origin_chip_view.h View 1 2 3 4 chunks +32 lines, -22 lines 0 comments Download
M chrome/browser/ui/views/location_bar/origin_chip_view.cc View 1 2 3 4 5 6 8 chunks +125 lines, -105 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.h View 6 chunks +1 line, -14 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 4 4 chunks +0 lines, -28 lines 0 comments Download
M ui/views/controls/textfield/textfield.h View 1 2 3 4 5 2 chunks +25 lines, -8 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 5 6 3 chunks +51 lines, -7 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Peter Kasting
I realize we're not supposed to be putting a ton of engineering time into the ...
6 years, 7 months ago (2014-05-24 02:22:48 UTC) #1
Peter Kasting
Patch set 2 adds animation of the trailing edge of the text as well, because ...
6 years, 7 months ago (2014-05-24 03:11:37 UTC) #2
Peter Kasting
The latest patch set should be final; it adds crossfading of the selection colors, animation ...
6 years, 7 months ago (2014-05-28 01:50:22 UTC) #3
Justin Donnelly
I've been playing with this animation and it looks cool. But it's not clear to ...
6 years, 6 months ago (2014-05-29 21:37:29 UTC) #4
Peter Kasting
New patch up. This patch set also includes better handling of things like chrome:// and ...
6 years, 6 months ago (2014-05-29 23:32:15 UTC) #5
Justin Donnelly
lgtm https://codereview.chromium.org/302453002/diff/40001/chrome/browser/ui/views/location_bar/location_bar_view.h File chrome/browser/ui/views/location_bar/location_bar_view.h (right): https://codereview.chromium.org/302453002/diff/40001/chrome/browser/ui/views/location_bar/location_bar_view.h#newcode348 chrome/browser/ui/views/location_bar/location_bar_view.h:348: double GetValueForAnimation(bool hide) const; On 2014/05/29 23:32:16, Peter ...
6 years, 6 months ago (2014-06-02 15:07:32 UTC) #6
Peter Kasting
The CQ bit was checked by pkasting@chromium.org
6 years, 6 months ago (2014-06-02 18:00:16 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkasting@chromium.org/302453002/120001
6 years, 6 months ago (2014-06-02 18:01:17 UTC) #8
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 19:28:14 UTC) #9
Message was sent while issue was closed.
Change committed as 274305

Powered by Google App Engine
This is Rietveld 408576698