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

Issue 2204843003: mash: Move the shelf DimmerView out of shelf_widget.cc. (Closed)

Created:
4 years, 4 months ago by msw
Modified:
4 years, 4 months ago
Reviewers:
James Cook
CC:
chromium-reviews, kalyank, sadrul, bruthig
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Move the shelf DimmerView out of shelf_widget.cc. Move DimmerView to ash/shelf/dimmer_view.[h|cc]. Add a static Create helper for View&Widget creation. Convert aura::WindowOberserver->WmWindowObserver. (and move observation from ShelfWidget to DimmerView) Nix ShelfWidget's pointer to the DimmerView's widget. Make the dimmer widget be owned by its native widget. Pass WmShelf not ShelfWidget to DimmerView. Undim on ShelfWidget::Shutdown. BUG=615155 TEST=Automated tests; no Chrome OS shelf dimmer changes. R=jamescook@chromium.org Committed: https://crrev.com/36af7b5e3aa2816d67e720bfd633029b82a724f1 Cr-Commit-Position: refs/heads/master@{#409558}

Patch Set 1 #

Patch Set 2 : Move dimmer creation to a static helper; fix widget ownership. #

Patch Set 3 : Pass the WmShelf; Use WmWindowObserver; undim on ShelfWidget::Shutdown. #

Patch Set 4 : Sync and rebase. #

Total comments: 26

Patch Set 5 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -249 lines) Patch
M ash/ash.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A ash/shelf/dimmer_view.h View 1 2 3 4 1 chunk +111 lines, -0 lines 0 comments Download
A ash/shelf/dimmer_view.cc View 1 2 3 4 1 chunk +174 lines, -0 lines 0 comments Download
M ash/shelf/shelf_widget.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ash/shelf/shelf_widget.cc View 1 2 3 4 11 chunks +21 lines, -249 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
msw
Hey James, please take a look; thanks!
4 years, 4 months ago (2016-08-02 23:02:16 UTC) #3
msw
+CC bruthig@ for heads up.
4 years, 4 months ago (2016-08-02 23:05:15 UTC) #6
James Cook
LGTM with nits. https://codereview.chromium.org/2204843003/diff/60001/ash/shelf/dimmer_view.cc File ash/shelf/dimmer_view.cc (right): https://codereview.chromium.org/2204843003/diff/60001/ash/shelf/dimmer_view.cc#newcode43 ash/shelf/dimmer_view.cc:43: dimmer->GetNativeWindow()->SetName("ShelfDimmer"); nit: use params.name = "ShelfDimmer"; ...
4 years, 4 months ago (2016-08-03 03:09:11 UTC) #11
msw
Thanks for all the good comments! https://codereview.chromium.org/2204843003/diff/60001/ash/shelf/dimmer_view.cc File ash/shelf/dimmer_view.cc (right): https://codereview.chromium.org/2204843003/diff/60001/ash/shelf/dimmer_view.cc#newcode43 ash/shelf/dimmer_view.cc:43: dimmer->GetNativeWindow()->SetName("ShelfDimmer"); On 2016/08/03 ...
4 years, 4 months ago (2016-08-03 16:48:24 UTC) #12
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/2204843003/80001
4 years, 4 months ago (2016-08-03 16:49:10 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-03 17:31:29 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 17:34:18 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/36af7b5e3aa2816d67e720bfd633029b82a724f1
Cr-Commit-Position: refs/heads/master@{#409558}

Powered by Google App Engine
This is Rietveld 408576698