New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 809794 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Feature
Team-Security-UX



Sign in to add a comment

[desktop-pwas] Add origin to title bar

Project Member Reported by calamity@chromium.org, Feb 7 2018

Issue description

The origin should be animated out of the 3 dot menu on app launch, and then animated back in after a delay.

go/dpwa-animations
 
Labels: -Pri-3 Pri-2
Labels: -Type-Bug Type-Feature

Comment 3 by hwi@chromium.org, Feb 24 2018

01 spec - tittle bar - origin.png
76.7 KB View Download
02 preview - tittle bar - origin.png
57.1 KB View Download
WIP origin slide animation demo.
Video-Thu-Mar-01-2018-19-19-10.webm
2.1 MB View Download
#4 looks good!

(to me)
Cc: hwi@chromium.org
Added icon fade in.
Video-Fri-Mar-02-2018-14-25-22.webm
1.1 MB View Download
Components: UI>Security>UrlFormatting
+UrlFormatting:
PTAL at the UI spec in #3 and WIP demo in #4.
Is this eliding of the origin appropriate from a security perspective?
Cc: est...@chromium.org
#8 just elides from left? I think this is fine.

+estark for security (please see the final window opened in the video on #4).
Added app menu button highlight animation. Recording shows how it interacts with mouse hover.
Video-Tue-Mar-06-2018-15-42-32.webm
5.2 MB View Download

Comment 11 by hwi@chromium.org, Mar 6 2018

c10 looks good. Thanks alancutter@!
@hwi: I think the window opening animation overlaps with the origin slide in animation and makes it a bit unnoticeable, it might be worth adding a delay in here.
I've attached a few demos that exhibit different delays on the opening animation, WDYT?
0ms delay.webm
2.1 MB View Download
250ms delay.webm
2.4 MB View Download
500ms delay.webm
2.4 MB View Download
750ms delay.webm
2.5 MB View Download

Comment 13 by hwi@chromium.org, Mar 6 2018

c12:

Great catch! I appreciate your attention to details, alancutter@.
- 750ms delay looks good to me, wdyt?

Additional note:
- The animation looks linear and a bit slow to me looking at the screen recording. Could we try the following?
--- Curve: cubic-bezier(0.16, 0.00, 0.00, 1.00)
--- Origin fade/slide in: 800ms (this might feel fast for really long text, but that should be an edge case)
--- Origin fade/slide out: 500ms 

Thanks!

750ms feels a tad long to me but I don't have a problem with it.

Oops, forgot about the cubic-bezier curve, ty.
We're a bit restricted on the cubic-beziers available to standard animations, probably to enforce consistency.
gfx::Tween::FAST_OUT_SLOW_IN_2 looks like the closest one to what you specified. It uses cubic-bezier(0.2, 0, 0.2, 1).

The slide in and out durations have been 800ms and 500ms respectively in the recordings.

Here's a recording of small, medium and big URLs with the 750ms delay and the cubic-bezier.
750ms delay cubic-bezier.webm
1.6 MB View Download
Another thing that can happen during the animation is an extension browser action can be opened by the user (thanks calamity). See recording for example, the current behaviour seems reasonable to me.
Video-Tue-Mar-06-2018-17-58-44.webm
954 KB View Download

Comment 16 by hwi@chromium.org, Mar 6 2018

c14: lgtm
c15: It's good to know. I don't have any strong feeling now. I'll keep watching out for it. 

Thanks alancutter@!
Found a few more cases to account for in CL review (https://chromium-review.googlesource.com/c/chromium/src/+/942722).
We need to support RTL layouts, dark theme colours and title bar colours changing with focus.
See recording of all these things in action.
rtl light-dark focused-unfocused.webm
3.4 MB View Download
Recording of the animation for CL https://chromium-review.googlesource.com/c/chromium/src/+/942722 without highlight animation.
Highlight is being moved to a separate CL to separate out the implementation concerns from the rest of the animation.
no-highlight.webm
618 KB View Download
Project Member

Comment 19 by bugdroid1@chromium.org, Mar 13 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f20513c88275a6ff7c528bbca31d064cf5798057

commit f20513c88275a6ff7c528bbca31d064cf5798057
Author: Alan Cutter <alancutter@chromium.org>
Date: Tue Mar 13 10:42:24 2018

Add URL origin opening animation to hosted app title bar

This CL implements a title bar animation for hosted apps on chromeOS
that shows the URL's origin for a few seconds when the window opens.
This CL omits the menu button highlight animation as that will be
implemented in a follow up CL.

See bug for screencasts.

Bug:  809794 
Change-Id: Ied16c5720722f994fa73cafd15c2f42e3d671e50
Reviewed-on: https://chromium-review.googlesource.com/942722
Commit-Queue: Alan Cutter <alancutter@chromium.org>
Reviewed-by: Trent Apted <tapted@chromium.org>
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542763}
[modify] https://crrev.com/f20513c88275a6ff7c528bbca31d064cf5798057/ash/BUILD.gn
[add] https://crrev.com/f20513c88275a6ff7c528bbca31d064cf5798057/ash/frame/frame_header_origin_text.cc
[add] https://crrev.com/f20513c88275a6ff7c528bbca31d064cf5798057/ash/frame/frame_header_origin_text.h
[modify] https://crrev.com/f20513c88275a6ff7c528bbca31d064cf5798057/chrome/browser/ui/extensions/hosted_app_browser_controller.cc
[modify] https://crrev.com/f20513c88275a6ff7c528bbca31d064cf5798057/chrome/browser/ui/extensions/hosted_app_browser_controller.h
[modify] https://crrev.com/f20513c88275a6ff7c528bbca31d064cf5798057/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc
[modify] https://crrev.com/f20513c88275a6ff7c528bbca31d064cf5798057/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h
[modify] https://crrev.com/f20513c88275a6ff7c528bbca31d064cf5798057/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc
[modify] https://crrev.com/f20513c88275a6ff7c528bbca31d064cf5798057/chrome/browser/ui/views/frame/hosted_app_button_container.cc
[modify] https://crrev.com/f20513c88275a6ff7c528bbca31d064cf5798057/chrome/browser/ui/views/frame/hosted_app_button_container.h

Project Member

Comment 20 by bugdroid1@chromium.org, Mar 16 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/672d71b45aad7b32830d880159a5c144f777ba39

commit 672d71b45aad7b32830d880159a5c144f777ba39
Author: Alan Cutter <alancutter@chromium.org>
Date: Fri Mar 16 00:18:22 2018

Add menu button highlight animation to origin title animation for hosted apps

This CL adds a menu button highlight animation to run along side the origin
title bar text animation for hosted apps added in:
https://chromium-review.googlesource.com/c/chromium/src/+/942722

Screencast: https://bugs.chromium.org/p/chromium/issues/attachment?aid=327708&signed_aid=U4VyDkrKmEzMN56O5woqsw==&inline=1

Bug:  809794 
Change-Id: I7ed8a7c9ccbf2c020bd9c76fb04f2a3123f265de
Reviewed-on: https://chromium-review.googlesource.com/958899
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Reviewed-by: Mohsen Izadi <mohsen@chromium.org>
Reviewed-by: Trent Apted <tapted@chromium.org>
Commit-Queue: Alan Cutter <alancutter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543569}
[modify] https://crrev.com/672d71b45aad7b32830d880159a5c144f777ba39/ash/shelf/shelf_view_unittest.cc
[modify] https://crrev.com/672d71b45aad7b32830d880159a5c144f777ba39/chrome/browser/ui/views/frame/hosted_app_button_container.cc
[modify] https://crrev.com/672d71b45aad7b32830d880159a5c144f777ba39/chrome/browser/ui/views/frame/hosted_app_button_container.h
[modify] https://crrev.com/672d71b45aad7b32830d880159a5c144f777ba39/ui/views/animation/ink_drop.h
[modify] https://crrev.com/672d71b45aad7b32830d880159a5c144f777ba39/ui/views/animation/ink_drop_impl.cc
[modify] https://crrev.com/672d71b45aad7b32830d880159a5c144f777ba39/ui/views/animation/ink_drop_impl.h
[modify] https://crrev.com/672d71b45aad7b32830d880159a5c144f777ba39/ui/views/animation/ink_drop_stub.cc
[modify] https://crrev.com/672d71b45aad7b32830d880159a5c144f777ba39/ui/views/animation/ink_drop_stub.h
[modify] https://crrev.com/672d71b45aad7b32830d880159a5c144f777ba39/ui/views/animation/test/test_ink_drop.cc
[modify] https://crrev.com/672d71b45aad7b32830d880159a5c144f777ba39/ui/views/animation/test/test_ink_drop.h

Status: Fixed (was: Assigned)

Sign in to add a comment