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

Issue 8895003: Aura: Add --aura-laptop-mode to fill the workspace with a single window. (Closed)

Created:
9 years ago by James Cook
Modified:
9 years ago
Reviewers:
oshima, sky
CC:
chromium-reviews, dhollowa+watch_chromium.org, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Aura: Add --aura-laptop-mode to fill the workspace with a single window. This is the first of several CLs to add a "laptop mode" to Aura that works like the traditional ChromeOS browser view. In particular: * Keep the browser maximized. * Hide window caption buttons. * Suppress the launcher and related shelf items. * Suppress background image. * Add the switch to about:flags. These things don't work yet: * Status area is wedged in upper-left corner. * Popup browser windows are maximized and they shouldn't be. BUG=106898 TEST=manual, run ChromeOS Aura build and turn the flag on and off Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114527

Patch Set 1 #

Patch Set 2 : remove bogus comment #

Patch Set 3 : maximize ALL the windows #

Total comments: 8

Patch Set 4 : address review comments 1 #

Total comments: 5

Patch Set 5 : start windows maximized, disable inactive rendering #

Patch Set 6 : rebase, revert window_util namespace #

Total comments: 3

Patch Set 7 : check window show state #

Patch Set 8 : rebase, fix unit test build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+296 lines, -153 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 2 3 4 3 chunks +31 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 5 6 5 chunks +36 lines, -36 lines 0 comments Download
M ui/aura/aura_switches.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/aura_switches.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura_shell/aura_shell.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A + ui/aura_shell/laptop_mode_layout_manager.h View 1 2 3 chunks +14 lines, -27 lines 0 comments Download
A ui/aura_shell/laptop_mode_layout_manager.cc View 1 2 3 4 5 6 1 chunk +64 lines, -0 lines 0 comments Download
M ui/aura_shell/root_window_layout_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura_shell/root_window_layout_manager.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura_shell/shelf_layout_manager.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M ui/aura_shell/shell.h View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
M ui/aura_shell/shell.cc View 1 2 3 4 5 4 chunks +59 lines, -37 lines 0 comments Download
M ui/aura_shell/toplevel_layout_manager.h View 1 2 1 chunk +4 lines, -6 lines 0 comments Download
M ui/aura_shell/toplevel_layout_manager.cc View 1 2 3 4 5 3 chunks +8 lines, -35 lines 0 comments Download
M ui/aura_shell/toplevel_window_event_filter.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ui/aura_shell/window_util.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M ui/aura_shell/window_util.cc View 1 2 3 4 5 2 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
James Cook
Oshima, PTAL at chrome/* especially opaque_browser_frame_view.cc Sky, PTAL at aura/* and aura_shell/* Thanks!
9 years ago (2011-12-10 00:50:06 UTC) #1
sky
http://codereview.chromium.org/8895003/diff/16/chrome/browser/ui/views/aura/chrome_shell_delegate.cc File chrome/browser/ui/views/aura/chrome_shell_delegate.cc (right): http://codereview.chromium.org/8895003/diff/16/chrome/browser/ui/views/aura/chrome_shell_delegate.cc#newcode13 chrome/browser/ui/views/aura/chrome_shell_delegate.cc:13: #include "ui/aura_shell/shell.h" sort http://codereview.chromium.org/8895003/diff/16/chrome/browser/ui/views/aura/chrome_shell_delegate.cc#newcode37 chrome/browser/ui/views/aura/chrome_shell_delegate.cc:37: if (!aura_shell::Shell::GetInstance()->launcher()) It doesn't ...
9 years ago (2011-12-12 15:46:28 UTC) #2
James Cook
Updated. http://codereview.chromium.org/8895003/diff/16/chrome/browser/ui/views/aura/chrome_shell_delegate.cc File chrome/browser/ui/views/aura/chrome_shell_delegate.cc (right): http://codereview.chromium.org/8895003/diff/16/chrome/browser/ui/views/aura/chrome_shell_delegate.cc#newcode13 chrome/browser/ui/views/aura/chrome_shell_delegate.cc:13: #include "ui/aura_shell/shell.h" On 2011/12/12 15:46:29, sky wrote: > ...
9 years ago (2011-12-12 18:33:36 UTC) #3
sky
LGTM
9 years ago (2011-12-12 21:37:19 UTC) #4
James Cook
On 2011/12/12 21:37:19, sky wrote: > LGTM Ping Oshima for chrome/* ?
9 years ago (2011-12-12 21:40:17 UTC) #5
oshima
Sorry for delay, looking now. On Mon, Dec 12, 2011 at 1:40 PM, <jamescook@chromium.org> wrote: ...
9 years ago (2011-12-13 00:27:16 UTC) #6
oshima
one general comment. Existing chromeos is not maximizing via WM (thus, the logic is a ...
9 years ago (2011-12-13 00:47:42 UTC) #7
James Cook
Oshima, please take another look. http://codereview.chromium.org/8895003/diff/9001/chrome/browser/ui/views/frame/browser_frame.cc File chrome/browser/ui/views/frame/browser_frame.cc (right): http://codereview.chromium.org/8895003/diff/9001/chrome/browser/ui/views/frame/browser_frame.cc#newcode72 chrome/browser/ui/views/frame/browser_frame.cc:72: // TODO(jamescook): Do this ...
9 years ago (2011-12-13 18:19:12 UTC) #8
oshima
http://codereview.chromium.org/8895003/diff/21001/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (right): http://codereview.chromium.org/8895003/diff/21001/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc#newcode957 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc:957: if (is_maximized || frame()->IsFullscreen()) { just a comment and ...
9 years ago (2011-12-14 17:41:02 UTC) #9
James Cook
Oshima, PTAL. http://codereview.chromium.org/8895003/diff/21001/ui/aura_shell/laptop_mode_layout_manager.cc File ui/aura_shell/laptop_mode_layout_manager.cc (right): http://codereview.chromium.org/8895003/diff/21001/ui/aura_shell/laptop_mode_layout_manager.cc#newcode51 ui/aura_shell/laptop_mode_layout_manager.cc:51: if (child->type() == aura::WINDOW_TYPE_NORMAL) On 2011/12/14 17:41:02, ...
9 years ago (2011-12-14 18:24:36 UTC) #10
oshima
9 years ago (2011-12-14 18:28:36 UTC) #11
lgtm

Powered by Google App Engine
This is Rietveld 408576698