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

Issue 331643004: Update the window labels if they change in overview mode. (Closed)

Created:
6 years, 6 months ago by Nina
Modified:
6 years, 6 months ago
Reviewers:
flackr, tdanderson, sky
CC:
chromium-reviews, tdanderson+views_chromium.org, sadrul, jam, ben+aura_chromium.org, tdanderson+overview_chromium.org, darin-cc_chromium.org, tfarina, kalyank, ben+views_chromium.org, ben+ash_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Update the window labels if they change in overview mode. This code adds a function to a WindowObserver that notfies it of a window title change, allowing to update the label in overview mode dynamically. BUG=387130 TEST=WindowSelectorTest.CreateLabelUnderWindow Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279887

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed nit. #

Patch Set 3 : Fixed nits. #

Total comments: 8

Patch Set 4 : Fixed Rob's nits #

Total comments: 4

Patch Set 5 : Fixed Sky's comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -65 lines) Patch
M ash/display/display_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/overview/window_selector_item.h View 1 2 3 4 6 chunks +13 lines, -1 line 0 comments Download
M ash/wm/overview/window_selector_item.cc View 1 2 3 4 5 chunks +41 lines, -39 lines 1 comment Download
M ash/wm/overview/window_selector_panels.cc View 1 2 3 3 chunks +7 lines, -1 line 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 1 2 3 4 5 chunks +38 lines, -20 lines 1 comment Download
M ash/wm/overview/window_selector_window.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/window.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/window.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M ui/aura/window_observer.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
Nina
Terry, can you give this patch a first look? Thanks!
6 years, 6 months ago (2014-06-20 20:57:19 UTC) #1
tdanderson
Nice! LGTM. (a couple of nits below) https://codereview.chromium.org/331643004/diff/1/ash/wm/overview/window_selector_panels.cc File ash/wm/overview/window_selector_panels.cc (right): https://codereview.chromium.org/331643004/diff/1/ash/wm/overview/window_selector_panels.cc#newcode147 ash/wm/overview/window_selector_panels.cc:147: if (window ...
6 years, 6 months ago (2014-06-20 22:33:23 UTC) #2
Nina
flackr, can you look at this patch? Terry, I got the nits fixed. Thanks! https://codereview.chromium.org/331643004/diff/1/ash/wm/overview/window_selector_panels.cc ...
6 years, 6 months ago (2014-06-20 23:02:37 UTC) #3
flackr
lgtm with nits https://codereview.chromium.org/331643004/diff/40001/ash/wm/overview/window_selector_panels.cc File ash/wm/overview/window_selector_panels.cc (right): https://codereview.chromium.org/331643004/diff/40001/ash/wm/overview/window_selector_panels.cc#newcode96 ash/wm/overview/window_selector_panels.cc:96: transform_windows_[0]->window()->RemoveObserver(this); nit: For consistency use transform_windows_.front() ...
6 years, 6 months ago (2014-06-24 17:10:52 UTC) #4
Nina
Got the nits sorted out. Terry, would you please check the CQ bit? Thanks! https://codereview.chromium.org/331643004/diff/40001/ash/wm/overview/window_selector_panels.cc ...
6 years, 6 months ago (2014-06-24 18:36:28 UTC) #5
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 6 months ago (2014-06-24 18:38:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nsatragno@chromium.org/331643004/60001
6 years, 6 months ago (2014-06-24 18:40:29 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-24 22:02:31 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-24 22:05:29 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/76084)
6 years, 6 months ago (2014-06-24 22:05:31 UTC) #10
Nina
Hi Sky, Can you please review this change? ui/*, content/* and ash/display/* need review from ...
6 years, 6 months ago (2014-06-24 22:10:49 UTC) #11
sky
https://codereview.chromium.org/331643004/diff/60001/ash/wm/overview/window_selector_item.cc File ash/wm/overview/window_selector_item.cc (right): https://codereview.chromium.org/331643004/diff/60001/ash/wm/overview/window_selector_item.cc#newcode175 ash/wm/overview/window_selector_item.cc:175: static_cast<views::Label*>( static_casts like this are often times fragile, in ...
6 years, 6 months ago (2014-06-25 16:24:44 UTC) #12
Nina
Sky, please give the patch another look. Thanks! https://codereview.chromium.org/331643004/diff/60001/ash/wm/overview/window_selector_item.cc File ash/wm/overview/window_selector_item.cc (right): https://codereview.chromium.org/331643004/diff/60001/ash/wm/overview/window_selector_item.cc#newcode175 ash/wm/overview/window_selector_item.cc:175: static_cast<views::Label*>( ...
6 years, 6 months ago (2014-06-25 19:54:41 UTC) #13
sky
LGTM
6 years, 6 months ago (2014-06-25 21:04:07 UTC) #14
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 6 months ago (2014-06-25 21:18:11 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nsatragno@chromium.org/331643004/80001
6 years, 6 months ago (2014-06-25 21:20:15 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-26 00:42:28 UTC) #17
commit-bot: I haz the power
6 years, 6 months ago (2014-06-26 01:55:28 UTC) #18
Message was sent while issue was closed.
Change committed as 279887

Powered by Google App Engine
This is Rietveld 408576698