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

Issue 42353002: Introduce WindowStateDelegate::ToggleFullscreen (Closed)

Created:
7 years, 2 months ago by oshima
Modified:
7 years, 1 month ago
Reviewers:
James Cook, pkotwicz, sky
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, tfarina
Visibility:
Public.

Description

Introduce WindowStateDelegate::ToggleFullscreen Replace kAnimateToFullscreenKey with a boolean flag in WindowState I removed #if defined(OS_WIN).. #endif in chrome_shell_delegate.cc because you'll never get window in desktop environment there. Next step. I'll look into if we can change so that WindowState::Restore can restore from fullscreen state properly. BUG=309837 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231903

Patch Set 1 : #

Total comments: 1

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Total comments: 18

Patch Set 4 : #

Patch Set 5 : #

Total comments: 15

Patch Set 6 : #

Total comments: 18

Patch Set 7 : #

Patch Set 8 : #

Total comments: 2

Patch Set 9 : scope_ptr #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : exclude accelerator_commands_browsertest on win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -317 lines) Patch
M ash/accelerators/accelerator_commands.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_commands.cc View 1 2 3 4 1 chunk +7 lines, -1 line 0 comments Download
M ash/accelerators/accelerator_commands_unittest.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/ash.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
M ash/shell_delegate.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M ash/wm/window_properties.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M ash/wm/window_properties.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/window_state.h View 1 2 3 4 5 6 7 8 6 chunks +15 lines, -0 lines 0 comments Download
M ash/wm/window_state.cc View 1 2 3 4 5 6 7 8 4 chunks +23 lines, -0 lines 0 comments Download
A ash/wm/window_state_delegate.h View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A ash/wm/window_state_delegate.cc View 1 1 chunk +21 lines, -0 lines 0 comments Download
M ash/wm/window_util.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ash/wm/window_util.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/ui/ash/accelerator_commands_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +20 lines, -31 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 2 chunks +0 lines, -50 lines 0 comments Download
D chrome/browser/ui/ash/chrome_shell_delegate_browsertest.cc View 1 2 3 1 chunk +0 lines, -192 lines 0 comments Download
M chrome/browser/ui/views/apps/native_app_window_views.cc View 1 2 3 4 5 6 7 8 5 chunks +39 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_ash.cc View 1 2 3 4 5 6 7 8 3 chunks +76 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
oshima
7 years, 2 months ago (2013-10-24 23:11:38 UTC) #1
pkotwicz
https://codereview.chromium.org/42353002/diff/70001/ash/wm/window_state.h File ash/wm/window_state.h (right): https://codereview.chromium.org/42353002/diff/70001/ash/wm/window_state.h#newcode127 ash/wm/window_state.h:127: bool maximize_when_fullscreen() const { We need to be careful ...
7 years, 1 month ago (2013-10-25 05:16:17 UTC) #2
oshima
On 2013/10/25 05:16:17, pkotwicz wrote: > https://codereview.chromium.org/42353002/diff/70001/ash/wm/window_state.h > File ash/wm/window_state.h (right): > > https://codereview.chromium.org/42353002/diff/70001/ash/wm/window_state.h#newcode127 > ...
7 years, 1 month ago (2013-10-25 13:55:55 UTC) #3
oshima
please hold. Given that fullscreen in chrome is more than just fullscreen, I'll take different ...
7 years, 1 month ago (2013-10-25 15:24:19 UTC) #4
pkotwicz
https://codereview.chromium.org/42353002/diff/140001/ash/wm/window_state.cc File ash/wm/window_state.cc (right): https://codereview.chromium.org/42353002/diff/140001/ash/wm/window_state.cc#newcode154 ash/wm/window_state.cc:154: window_->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); In a future CL, you will need ...
7 years, 1 month ago (2013-10-25 19:56:37 UTC) #5
James Cook
Peter, can you briefly summarize the long-term plan for fullscreen from the Ash point of ...
7 years, 1 month ago (2013-10-25 20:17:27 UTC) #6
pkotwicz
Yes, the long term goal is to have something similar to having two different fullscreen ...
7 years, 1 month ago (2013-10-25 20:40:25 UTC) #7
James Cook
oshima, overall approach seems fine, let me know when you're ready for final review
7 years, 1 month ago (2013-10-25 20:43:20 UTC) #8
oshima
https://codereview.chromium.org/42353002/diff/140001/ash/wm/window_state.cc File ash/wm/window_state.cc (right): https://codereview.chromium.org/42353002/diff/140001/ash/wm/window_state.cc#newcode154 ash/wm/window_state.cc:154: window_->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); On 2013/10/25 19:56:38, pkotwicz wrote: > In ...
7 years, 1 month ago (2013-10-25 22:36:20 UTC) #9
oshima
james, please review.
7 years, 1 month ago (2013-10-25 22:36:29 UTC) #10
pkotwicz
A few more comments. Also, were you planning on moving the browser tests in chrome_shell_delegate_browsertest.cc ...
7 years, 1 month ago (2013-10-25 23:31:14 UTC) #11
pkotwicz
https://codereview.chromium.org/42353002/diff/240001/chrome/browser/ui/views/frame/browser_frame_ash.cc File chrome/browser/ui/views/frame/browser_frame_ash.cc (right): https://codereview.chromium.org/42353002/diff/240001/chrome/browser/ui/views/frame/browser_frame_ash.cc#newcode98 chrome/browser/ui/views/frame/browser_frame_ash.cc:98: // Don't do anything if we don't have our ...
7 years, 1 month ago (2013-10-25 23:34:14 UTC) #12
pkotwicz
https://codereview.chromium.org/42353002/diff/240001/ash/wm/window_state.cc File ash/wm/window_state.cc (right): https://codereview.chromium.org/42353002/diff/240001/ash/wm/window_state.cc#newcode164 ash/wm/window_state.cc:164: void WindowState::ToggleFullscreen() { You probably want to check CanMaximize() ...
7 years, 1 month ago (2013-10-26 03:46:34 UTC) #13
James Cook
oshima, do you want me to look now, or do you want to take a ...
7 years, 1 month ago (2013-10-28 16:12:10 UTC) #14
oshima
On 2013/10/28 16:12:10, James Cook wrote: > oshima, do you want me to look now, ...
7 years, 1 month ago (2013-10-28 18:55:48 UTC) #15
oshima
> Also, were you planning on moving the browser tests in > chrome_shell_delegate_browsertest.cc as part ...
7 years, 1 month ago (2013-10-28 22:57:50 UTC) #16
oshima
Looks like the patch had merge problem. I'll update new patch and let you know.
7 years, 1 month ago (2013-10-28 23:05:17 UTC) #17
oshima
uploaded new patch. peter, james, PTAL.
7 years, 1 month ago (2013-10-28 23:44:37 UTC) #18
pkotwicz
https://codereview.chromium.org/42353002/diff/240001/chrome/browser/ui/views/frame/browser_frame_ash.cc File chrome/browser/ui/views/frame/browser_frame_ash.cc (right): https://codereview.chromium.org/42353002/diff/240001/chrome/browser/ui/views/frame/browser_frame_ash.cc#newcode98 chrome/browser/ui/views/frame/browser_frame_ash.cc:98: // Don't do anything if we don't have our ...
7 years, 1 month ago (2013-10-29 00:46:00 UTC) #19
oshima
https://codereview.chromium.org/42353002/diff/420001/ash/wm/window_state_delegate.h File ash/wm/window_state_delegate.h (right): https://codereview.chromium.org/42353002/diff/420001/ash/wm/window_state_delegate.h#newcode21 ash/wm/window_state_delegate.h:21: // fullscreen state. The caller (|ash::wm::WindowState|) fallbacks On 2013/10/29 ...
7 years, 1 month ago (2013-10-29 02:05:41 UTC) #20
James Cook
LGTM with small nits https://codereview.chromium.org/42353002/diff/560001/ash/wm/window_state.h File ash/wm/window_state.h (right): https://codereview.chromium.org/42353002/diff/560001/ash/wm/window_state.h#newcode9 ash/wm/window_state.h:9: #include "ash/wm/window_state_delegate.h" nit: Do you ...
7 years, 1 month ago (2013-10-29 16:13:04 UTC) #21
pkotwicz
LGTM https://codereview.chromium.org/42353002/diff/560001/ash/accelerators/accelerator_commands.h File ash/accelerators/accelerator_commands.h (right): https://codereview.chromium.org/42353002/diff/560001/ash/accelerators/accelerator_commands.h#newcode25 ash/accelerators/accelerator_commands.h:25: // by |WindowStateDelegate::ToggleFullscreen()|. Nit: WindowStateDelegate::ToggleFullscreen() -> WindowStateDelegate::ToggleFullscreen() https://codereview.chromium.org/42353002/diff/560001/chrome/browser/ui/views/apps/native_app_window_views.cc ...
7 years, 1 month ago (2013-10-29 16:45:13 UTC) #22
oshima
https://codereview.chromium.org/42353002/diff/560001/ash/accelerators/accelerator_commands.h File ash/accelerators/accelerator_commands.h (right): https://codereview.chromium.org/42353002/diff/560001/ash/accelerators/accelerator_commands.h#newcode25 ash/accelerators/accelerator_commands.h:25: // by |WindowStateDelegate::ToggleFullscreen()|. On 2013/10/29 16:45:14, pkotwicz wrote: > ...
7 years, 1 month ago (2013-10-29 17:45:52 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/42353002/690001
7 years, 1 month ago (2013-10-29 18:45:27 UTC) #24
oshima
sky -> c/b/ui/views
7 years, 1 month ago (2013-10-29 19:22:56 UTC) #25
sky
LGTM https://codereview.chromium.org/42353002/diff/690001/chrome/browser/ui/views/apps/native_app_window_views.cc File chrome/browser/ui/views/apps/native_app_window_views.cc (right): https://codereview.chromium.org/42353002/diff/690001/chrome/browser/ui/views/apps/native_app_window_views.cc#newcode188 chrome/browser/ui/views/apps/native_app_window_views.cc:188: ash::wm::GetWindowState(GetNativeWindow())->SetDelegate( Can SetDelegate take a scoped_ptr so I ...
7 years, 1 month ago (2013-10-29 20:52:21 UTC) #26
oshima
https://codereview.chromium.org/42353002/diff/690001/chrome/browser/ui/views/apps/native_app_window_views.cc File chrome/browser/ui/views/apps/native_app_window_views.cc (right): https://codereview.chromium.org/42353002/diff/690001/chrome/browser/ui/views/apps/native_app_window_views.cc#newcode188 chrome/browser/ui/views/apps/native_app_window_views.cc:188: ash::wm::GetWindowState(GetNativeWindow())->SetDelegate( On 2013/10/29 20:52:21, sky wrote: > Can SetDelegate ...
7 years, 1 month ago (2013-10-29 22:54:41 UTC) #27
sky
Thanks, SLGTM
7 years, 1 month ago (2013-10-29 23:13:27 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/42353002/780001
7 years, 1 month ago (2013-10-29 23:16:31 UTC) #29
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=215397
7 years, 1 month ago (2013-10-30 04:06:49 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/42353002/1050001
7 years, 1 month ago (2013-10-30 05:02:35 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/42353002/1260001
7 years, 1 month ago (2013-10-30 17:14:22 UTC) #32
commit-bot: I haz the power
7 years, 1 month ago (2013-10-30 20:20:15 UTC) #33
Message was sent while issue was closed.
Change committed as 231903

Powered by Google App Engine
This is Rietveld 408576698