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

Issue 2625113004: Unify window fullscreen and minimizing implementation (Closed)

Created:
3 years, 11 months ago by Peng
Modified:
3 years, 11 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, kalyank, tfarina, sadrul, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unify window fullscreen and minimizing implementation. Currently, we have several places which implement the toggle fullscreen logic. To avoid duplicate code in WmWindow::SetFullscreen(), DesktopWindowTreeHostMus::SetFullscreen() and NativeWidgetAura::SetFullscreen(), we abstract the common logic wm::SetWindowFullscreen() in //ui/wm, and use it in those three functions. BUG=670496 Review-Url: https://codereview.chromium.org/2625113004 Cr-Commit-Position: refs/heads/master@{#445876} Committed: https://chromium.googlesource.com/chromium/src/+/95e5e9f467769c8f0f22577eefa7267b14fbbdbd

Patch Set 1 #

Patch Set 2 : Update #

Total comments: 1

Patch Set 3 : Update #

Patch Set 4 : Update #

Total comments: 2

Patch Set 5 : Fix a review issue #

Patch Set 6 : Fix trybots #

Total comments: 6

Patch Set 7 : Fix review issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -53 lines) Patch
M ash/common/wm/default_state.cc View 1 2 3 4 5 1 chunk +0 lines, -17 lines 0 comments Download
M ash/common/wm_window.cc View 1 2 4 1 chunk +1 line, -9 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.cc View 1 2 3 2 chunks +1 line, -11 lines 0 comments Download
M ui/views/widget/native_widget_aura.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 2 chunks +1 line, -9 lines 0 comments Download
M ui/wm/core/window_util.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/wm/core/window_util.cc View 1 2 3 4 5 6 2 chunks +34 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (23 generated)
Peng
Hi Oshima, PTAL. Thanks.
3 years, 11 months ago (2017-01-13 19:45:52 UTC) #3
oshima
The approach looks reasonable, but sky@ should be the right reviewer for this. Alternative approach ...
3 years, 11 months ago (2017-01-18 01:43:37 UTC) #5
sky
Can you elaborate on the bug you're trying to solve? You don't have a BUG= ...
3 years, 11 months ago (2017-01-18 16:48:16 UTC) #6
Peng
On 2017/01/18 16:48:16, sky wrote: > Can you elaborate on the bug you're trying to ...
3 years, 11 months ago (2017-01-18 19:02:34 UTC) #10
sky
On 2017/01/18 19:02:34, Peng wrote: > On 2017/01/18 16:48:16, sky wrote: > > Can you ...
3 years, 11 months ago (2017-01-18 21:55:39 UTC) #11
Peng
On 2017/01/18 21:55:39, sky wrote: > On 2017/01/18 19:02:34, Peng wrote: > > On 2017/01/18 ...
3 years, 11 months ago (2017-01-18 22:13:23 UTC) #12
sky
On Wed, Jan 18, 2017 at 2:13 PM, <penghuang@chromium.org> wrote: > On 2017/01/18 21:55:39, sky ...
3 years, 11 months ago (2017-01-18 23:27:28 UTC) #13
Peng
Thanks for your suggestion. I updated CL. PTAL. Thanks. On 2017/01/18 23:27:28, sky wrote: > ...
3 years, 11 months ago (2017-01-23 19:47:03 UTC) #14
sky
https://codereview.chromium.org/2625113004/diff/60001/ash/wm/window_util.cc File ash/wm/window_util.cc (right): https://codereview.chromium.org/2625113004/diff/60001/ash/wm/window_util.cc#newcode58 ash/wm/window_util.cc:58: void SetWindowFullscreen(aura::Window* window, bool fullscreen) { Can't callers call ...
3 years, 11 months ago (2017-01-23 20:13:34 UTC) #20
Peng
https://codereview.chromium.org/2625113004/diff/60001/ash/wm/window_util.cc File ash/wm/window_util.cc (right): https://codereview.chromium.org/2625113004/diff/60001/ash/wm/window_util.cc#newcode58 ash/wm/window_util.cc:58: void SetWindowFullscreen(aura::Window* window, bool fullscreen) { On 2017/01/23 20:13:34, ...
3 years, 11 months ago (2017-01-23 20:23:46 UTC) #21
sky
This looks good. Could you add test coverage of kPreFullscreenShowStateKey though? I don't see it ...
3 years, 11 months ago (2017-01-23 21:12:19 UTC) #26
Peng
On 2017/01/23 21:12:19, sky wrote: > This looks good. Could you add test coverage of ...
3 years, 11 months ago (2017-01-23 21:24:36 UTC) #27
sky
LGTM
3 years, 11 months ago (2017-01-24 00:28:10 UTC) #28
sky
LGTM with the following fixed. https://codereview.chromium.org/2625113004/diff/100001/ui/wm/core/window_util.cc File ui/wm/core/window_util.cc (right): https://codereview.chromium.org/2625113004/diff/100001/ui/wm/core/window_util.cc#newcode90 ui/wm/core/window_util.cc:90: auto current_state = window->GetProperty(aura::client::kShowStateKey); ...
3 years, 11 months ago (2017-01-24 21:56:34 UTC) #31
Peng
https://codereview.chromium.org/2625113004/diff/100001/ui/wm/core/window_util.cc File ui/wm/core/window_util.cc (right): https://codereview.chromium.org/2625113004/diff/100001/ui/wm/core/window_util.cc#newcode90 ui/wm/core/window_util.cc:90: auto current_state = window->GetProperty(aura::client::kShowStateKey); On 2017/01/24 21:56:33, sky wrote: ...
3 years, 11 months ago (2017-01-24 22:13:03 UTC) #34
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/2625113004/120001
3 years, 11 months ago (2017-01-24 22:13:58 UTC) #37
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 00:35:09 UTC) #40
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/95e5e9f467769c8f0f22577eefa7...

Powered by Google App Engine
This is Rietveld 408576698