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

Issue 2517833003: Allow to create ARC++ windows minimized on startup. (Closed)

Created:
4 years, 1 month ago by mtomasz
Modified:
4 years ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow to create ARC++ windows minimized on startup. TEST=Tested with OneNote badge. BUG=667608 Committed: https://crrev.com/43961ed73ccb8a76e6621fcdbe0a930aa88a42b3 Cr-Commit-Position: refs/heads/master@{#433824}

Patch Set 1 #

Patch Set 2 : Added a test. #

Total comments: 4

Patch Set 3 : Cleaned up the test. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M components/exo/shell_surface.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/exo/shell_surface_unittest.cc View 1 2 1 chunk +5 lines, -0 lines 4 comments Download

Messages

Total messages: 33 (20 generated)
mtomasz
ARC side here: ag/1644756
4 years, 1 month ago (2016-11-21 02:48:40 UTC) #3
mtomasz
4 years, 1 month ago (2016-11-21 02:48:56 UTC) #5
mtomasz
@reveman, @skuhne: PTAL. Thanks.
4 years, 1 month ago (2016-11-21 02:49:06 UTC) #6
Mr4D (OOO till 08-26)
I think this should be fine - but I leave the final lgtm to reveman ...
4 years, 1 month ago (2016-11-21 15:20:36 UTC) #9
mtomasz
@oshima: PTAL.
4 years, 1 month ago (2016-11-22 03:20:09 UTC) #12
reveman
lgtm after minor improvements to the test https://codereview.chromium.org/2517833003/diff/20001/components/exo/shell_surface_unittest.cc File components/exo/shell_surface_unittest.cc (right): https://codereview.chromium.org/2517833003/diff/20001/components/exo/shell_surface_unittest.cc#newcode135 components/exo/shell_surface_unittest.cc:135: TEST_F(ShellSurfaceTest, Minimize_BeforeSurfaceCommit) ...
4 years, 1 month ago (2016-11-22 08:26:49 UTC) #18
mtomasz
https://codereview.chromium.org/2517833003/diff/20001/components/exo/shell_surface_unittest.cc File components/exo/shell_surface_unittest.cc (right): https://codereview.chromium.org/2517833003/diff/20001/components/exo/shell_surface_unittest.cc#newcode135 components/exo/shell_surface_unittest.cc:135: TEST_F(ShellSurfaceTest, Minimize_BeforeSurfaceCommit) { On 2016/11/22 08:26:49, reveman wrote: > ...
4 years, 1 month ago (2016-11-22 08:39:34 UTC) #19
oshima
lgtm
4 years, 1 month ago (2016-11-22 09:18:54 UTC) #22
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/2517833003/40001
4 years, 1 month ago (2016-11-22 09:22:55 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-22 09:26:17 UTC) #29
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/43961ed73ccb8a76e6621fcdbe0a930aa88a42b3 Cr-Commit-Position: refs/heads/master@{#433824}
4 years, 1 month ago (2016-11-22 09:28:46 UTC) #31
reveman
Some unit test improvements that would be nice to fix in a follow up. https://codereview.chromium.org/2517833003/diff/40001/components/exo/shell_surface_unittest.cc ...
4 years, 1 month ago (2016-11-22 09:29:11 UTC) #32
mtomasz
4 years ago (2016-11-24 00:51:04 UTC) #33
Message was sent while issue was closed.
https://codereview.chromium.org/2517833003/diff/40001/components/exo/shell_su...
File components/exo/shell_surface_unittest.cc (right):

https://codereview.chromium.org/2517833003/diff/40001/components/exo/shell_su...
components/exo/shell_surface_unittest.cc:135: surface->Commit();
On 2016/11/22 09:29:11, reveman wrote:
> Would be nice to check that shell surface is still minimized after this
Commit()
> call but before the next Minimize call.

Acknowledged.

https://codereview.chromium.org/2517833003/diff/40001/components/exo/shell_su...
components/exo/shell_surface_unittest.cc:136: shell_surface->Minimize();
On 2016/11/22 09:29:11, reveman wrote:
> Not sure it makes sense to test calling this now that we expect the shell
> surface to already be minimized. Can you instead restore it, verify that it
> restored correctly, then minimize it again and verify that it worked?

Oops, minimizing here completely doesn't make sense. That's what happens when in
rush...

My intention was to confirm that after committing it would still be minimized,
so just removing this line (without restoring). Is it OK?

Powered by Google App Engine
This is Rietveld 408576698