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

Issue 2696703005: Make RotationLockDefaultView inherit directly from ActionableView (Closed)

Created:
3 years, 10 months ago by mohsen
Modified:
3 years, 10 months ago
Reviewers:
tdanderson, stevenjb
CC:
chromium-reviews, kalyank, oshima+watch_chromium.org, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make RotationLockDefaultView inherit directly from ActionableView RotationLockDefaultView was inheriting from TrayItemMore to be able to use its layout. However, it did not use TrayItemMore's chevron or detailed view transition. This patch changes RotationLockDefaultView to inherit directly from ActionableView and use factory functions in TrayPopupUtils to layout its contents. This patch also fixes an issue with rotation lock row where its label was not updated properly when rotation lock status was changed (e.g. due to use of rotation shortcut). This patch is a prerequisite for fixing correct theming and ripple animation for non-clickable rows in the lock screen. BUG=687689 TEST=TrayRotationLockTest.* in ash_unittests, manual Review-Url: https://codereview.chromium.org/2696703005 Cr-Commit-Position: refs/heads/master@{#451139} Committed: https://chromium.googlesource.com/chromium/src/+/39de08056d4d8cb6a4f2928b4c142f907c37e6b7

Patch Set 1 #

Patch Set 2 : Added accessibility support #

Patch Set 3 : Cleanup #

Patch Set 4 : Observe missing case #

Total comments: 9

Patch Set 5 : Rebased #

Patch Set 6 : nits #

Patch Set 7 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -82 lines) Patch
M ash/system/chromeos/rotation/tray_rotation_lock.h View 1 chunk +0 lines, -9 lines 0 comments Download
M ash/system/chromeos/rotation/tray_rotation_lock.cc View 1 2 3 4 5 7 chunks +101 lines, -73 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 33 (24 generated)
mohsen
Please take a look...
3 years, 10 months ago (2017-02-14 19:22:48 UTC) #6
stevenjb
I am not the best person to review this any more. tdanderson@ - Could you ...
3 years, 10 months ago (2017-02-14 19:29:11 UTC) #8
James Cook
On 2017/02/14 19:29:11, stevenjb wrote: > I am not the best person to review this ...
3 years, 10 months ago (2017-02-14 20:43:25 UTC) #11
mohsen
stevenjb@: Thanks tdanderson@: I'd missed one case when observing screen rotation controller which is now ...
3 years, 10 months ago (2017-02-14 21:27:36 UTC) #14
tdanderson
Very nice, LGTM with one question/comment about observer removal. https://codereview.chromium.org/2696703005/diff/50001/ash/system/chromeos/rotation/tray_rotation_lock.cc File ash/system/chromeos/rotation/tray_rotation_lock.cc (left): https://codereview.chromium.org/2696703005/diff/50001/ash/system/chromeos/rotation/tray_rotation_lock.cc#oldcode188 ash/system/chromeos/rotation/tray_rotation_lock.cc:188: ...
3 years, 10 months ago (2017-02-16 01:00:12 UTC) #17
mohsen
https://codereview.chromium.org/2696703005/diff/50001/ash/system/chromeos/rotation/tray_rotation_lock.cc File ash/system/chromeos/rotation/tray_rotation_lock.cc (left): https://codereview.chromium.org/2696703005/diff/50001/ash/system/chromeos/rotation/tray_rotation_lock.cc#oldcode188 ash/system/chromeos/rotation/tray_rotation_lock.cc:188: if (!observing_shell_) On 2017/02/16 at 01:00:12, tdanderson wrote: > ...
3 years, 10 months ago (2017-02-16 04:15:17 UTC) #20
tdanderson
PS6 still LGTM https://codereview.chromium.org/2696703005/diff/50001/ash/system/chromeos/rotation/tray_rotation_lock.cc File ash/system/chromeos/rotation/tray_rotation_lock.cc (left): https://codereview.chromium.org/2696703005/diff/50001/ash/system/chromeos/rotation/tray_rotation_lock.cc#oldcode188 ash/system/chromeos/rotation/tray_rotation_lock.cc:188: if (!observing_shell_) On 2017/02/16 04:15:17, mohsen ...
3 years, 10 months ago (2017-02-16 19:20:59 UTC) #23
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/2696703005/110001
3 years, 10 months ago (2017-02-16 22:04:01 UTC) #30
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 23:48:38 UTC) #33
Message was sent while issue was closed.
Committed patchset #7 (id:110001) as
https://chromium.googlesource.com/chromium/src/+/39de08056d4d8cb6a4f2928b4c14...

Powered by Google App Engine
This is Rietveld 408576698