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

Issue 1114383002: Show overview mode button in TouchView with open modal window (Closed)

Created:
5 years, 7 months ago by tdanderson
Modified:
5 years, 6 months ago
Reviewers:
jonross, oshima, bruthig
CC:
chromium-reviews, tdanderson+overview_chromium.org, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show overview mode button in TouchView with open modal window Currently, the overview mode button is only shown within maximize mode when all of the following conditions hold: (1) The user is logged in, and (2) The screen is not locked, and (3) The user is not in kiosk mode, and (4) There are no system modal windows open. These are the same four conditions for when overview mode may be engaged by the user. This CL drops condition (4) for showing the overview mode button in maximize mode, but does not change the conditions for being able to engage overview mode. In other words, the overview mode button will now show for the user when there are modal windows open, but tapping on this button will remain a no-op. BUG=482591 TEST=OverviewButtonTrayTest.VisibilityChangesForSystemModalWindow

Patch Set 1 #

Total comments: 10

Patch Set 2 : comments addressed #

Total comments: 2

Patch Set 3 : use SetBoundsInScreen() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -34 lines) Patch
M ash/system/overview/overview_button_tray.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M ash/system/overview/overview_button_tray.cc View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
M ash/system/overview/overview_button_tray_unittest.cc View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M ash/test/ash_test_base.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M ash/test/ash_test_base.cc View 1 2 2 chunks +35 lines, -3 lines 0 comments Download
M ash/wm/dock/docked_window_resizer_unittest.cc View 1 chunk +2 lines, -20 lines 0 comments Download
M ash/wm/overview/window_selector_controller.h View 1 chunk +8 lines, -2 lines 0 comments Download
M ash/wm/overview/window_selector_controller.cc View 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
tdanderson
Hey Ben and Jon, mind taking a look?
5 years, 7 months ago (2015-05-01 16:13:40 UTC) #2
jonross
https://codereview.chromium.org/1114383002/diff/1/ash/system/overview/overview_button_tray_unittest.cc File ash/system/overview/overview_button_tray_unittest.cc (right): https://codereview.chromium.org/1114383002/diff/1/ash/system/overview/overview_button_tray_unittest.cc#newcode22 ash/system/overview/overview_button_tray_unittest.cc:22: #include "ui/aura/client/aura_constants.h" Necessary? https://codereview.chromium.org/1114383002/diff/1/ash/system/overview/overview_button_tray_unittest.cc#newcode163 ash/system/overview/overview_button_tray_unittest.cc:163: ->EnableMaximizeModeWindowManager(false); Check afterwards to ...
5 years, 7 months ago (2015-05-01 17:30:15 UTC) #3
bruthig
lgtm with nit https://codereview.chromium.org/1114383002/diff/1/ash/system/overview/overview_button_tray.h File ash/system/overview/overview_button_tray.h (right): https://codereview.chromium.org/1114383002/diff/1/ash/system/overview/overview_button_tray.h#newcode55 ash/system/overview/overview_button_tray.h:55: // Shows or hides the overview ...
5 years, 7 months ago (2015-05-01 17:43:35 UTC) #4
tdanderson
Thanks for the comments. @oshima, mind taking a look? https://codereview.chromium.org/1114383002/diff/1/ash/system/overview/overview_button_tray.h File ash/system/overview/overview_button_tray.h (right): https://codereview.chromium.org/1114383002/diff/1/ash/system/overview/overview_button_tray.h#newcode55 ash/system/overview/overview_button_tray.h:55: ...
5 years, 7 months ago (2015-05-01 18:07:32 UTC) #6
jonross
On 2015/05/01 18:07:32, tdanderson wrote: > Thanks for the comments. @oshima, mind taking a look? ...
5 years, 7 months ago (2015-05-01 18:20:39 UTC) #7
jonross
https://codereview.chromium.org/1114383002/diff/1/ash/test/ash_test_base.cc File ash/test/ash_test_base.cc (right): https://codereview.chromium.org/1114383002/diff/1/ash/test/ash_test_base.cc#newcode293 ash/test/ash_test_base.cc:293: aura::Window* AshTestBase::CreateTestModalWindowInShellWithDelegateAndType( On 2015/05/01 18:07:32, tdanderson wrote: > On ...
5 years, 7 months ago (2015-05-01 18:29:52 UTC) #8
jonross
https://codereview.chromium.org/1114383002/diff/1/ash/test/ash_test_base.cc File ash/test/ash_test_base.cc (right): https://codereview.chromium.org/1114383002/diff/1/ash/test/ash_test_base.cc#newcode293 ash/test/ash_test_base.cc:293: aura::Window* AshTestBase::CreateTestModalWindowInShellWithDelegateAndType( On 2015/05/01 18:07:32, tdanderson wrote: > On ...
5 years, 7 months ago (2015-05-01 18:29:53 UTC) #9
oshima
https://codereview.chromium.org/1114383002/diff/20001/ash/test/ash_test_base.cc File ash/test/ash_test_base.cc (right): https://codereview.chromium.org/1114383002/diff/20001/ash/test/ash_test_base.cc#newcode318 ash/test/ash_test_base.cc:318: aura::client::ParentWindowWithContext(window, root, bounds); Window::SetBoundsInScreen ?
5 years, 7 months ago (2015-05-04 19:35:36 UTC) #10
tdanderson
@oshima, can you please take another look? https://chromiumcodereview.appspot.com/1114383002/diff/20001/ash/test/ash_test_base.cc File ash/test/ash_test_base.cc (right): https://chromiumcodereview.appspot.com/1114383002/diff/20001/ash/test/ash_test_base.cc#newcode318 ash/test/ash_test_base.cc:318: aura::client::ParentWindowWithContext(window, root, ...
5 years, 7 months ago (2015-05-06 16:36:05 UTC) #11
oshima
On 2015/05/06 16:36:05, tdanderson wrote: > @oshima, can you please take another look? > > ...
5 years, 7 months ago (2015-05-06 16:44:32 UTC) #12
jonross
On 2015/05/06 16:44:32, oshima wrote: > On 2015/05/06 16:36:05, tdanderson wrote: > > @oshima, can ...
5 years, 6 months ago (2015-06-04 17:56:41 UTC) #13
tdanderson
5 years, 6 months ago (2015-06-04 17:58:34 UTC) #14
On 2015/06/04 17:56:41, jonross wrote:
> On 2015/05/06 16:44:32, oshima wrote:
> > On 2015/05/06 16:36:05, tdanderson wrote:
> > > @oshima, can you please take another look?
> > > 
> > >
> >
>
https://chromiumcodereview.appspot.com/1114383002/diff/20001/ash/test/ash_tes...
> > > File ash/test/ash_test_base.cc (right):
> > > 
> > >
> >
>
https://chromiumcodereview.appspot.com/1114383002/diff/20001/ash/test/ash_tes...
> > > ash/test/ash_test_base.cc:318:
aura::client::ParentWindowWithContext(window,
> > > root, bounds);
> > > On 2015/05/04 19:35:36, oshima wrote:
> > > > Window::SetBoundsInScreen ?
> > > 
> > > I think SetBounds() here is correct - it's consistent with
> > > AshTestBase::CreateTestWindowInShellWithDelegateAndType().
> > 
> > That code predates the SetBoundsInScreeen, and it should use
SetBoundsInScreen
> > too.
> > SetBoundsInScreen should do what these code is doing.
> 
> https://codereview.chromium.org/1149833006/ is landing a fix which also
> addressed this issue.
> 
> tdanderson@ feel free to close this review.

Great, thanks for your fix, Jon! Closing this out.

Powered by Google App Engine
This is Rietveld 408576698