|
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
Total comments: 17
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
|
Total messages: 9 (0 generated)
|