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

Issue 441803004: Introduce new WebApp header style for hosted apps and fizzy apps on ash. (Closed)

Created:
6 years, 4 months ago by benwells
Modified:
6 years, 4 months ago
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, tfarina, chrome-apps-syd-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Introduce new WebApp header style for hosted apps and fizzy apps on ash. The new header style currently has a back button and a title, as well as the normal caption buttons (minimize, maximize / restore, close). The new header style is only used in --enable-streamlined-hosted-apps is enabled. BUG=368372 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290502

Patch Set 1 #

Patch Set 2 : Self review #

Patch Set 3 : Self nit #

Patch Set 4 : Put some non-ash code back #

Total comments: 8

Patch Set 5 : Rebase #

Patch Set 6 : Feedback #

Total comments: 15

Patch Set 7 : Rebase #

Patch Set 8 : Review feedback #

Total comments: 10

Patch Set 9 : Self nits #

Total comments: 2

Patch Set 10 : Review feedback #

Patch Set 11 : Fix test #

Total comments: 18

Patch Set 12 : More feedback #

Total comments: 8

Patch Set 13 : Real assets, crushed, review feedback #

Total comments: 12

Patch Set 14 : Feedback #

Patch Set 15 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -92 lines) Patch
M ash/frame/caption_buttons/caption_button_types.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/frame/caption_buttons/frame_size_button.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ash/frame/custom_frame_view_ash.cc View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -4 lines 0 comments Download
M ash/frame/default_header_painter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +8 lines, -5 lines 0 comments Download
M ash/frame/default_header_painter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +26 lines, -19 lines 0 comments Download
M ash/frame/default_header_painter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -2 lines 0 comments Download
M ash/frame/header_painter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M ash/frame/header_painter_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -11 lines 0 comments Download
M ash/frame/header_painter_util.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +10 lines, -19 lines 0 comments Download
M ash/resources/ash_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
A ash/resources/default_100_percent/common/window_control_icon_back.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
A ash/resources/default_100_percent/common/window_control_icon_back_inactive.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
A ash/resources/default_200_percent/common/window_control_icon_back.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
A ash/resources/default_200_percent/common/window_control_icon_back_inactive.png View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
M ash/wm/panels/panel_frame_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_header_painter_ash.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_header_painter_ash.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +12 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +26 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc View 1 2 3 4 5 6 7 8 9 10 11 12 12 chunks +103 lines, -18 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
benwells
Chris, can you do a sanity check before I find an owner?
6 years, 4 months ago (2014-08-05 07:29:07 UTC) #1
benwells
fixed a woopsie.
6 years, 4 months ago (2014-08-06 01:32:44 UTC) #2
benwells
+oshima for binary stuff. When I run the optimize png script (with -o0 or -o2) ...
6 years, 4 months ago (2014-08-06 01:34:02 UTC) #3
calamity
Mostly nits, one name collision issue which may or may not be worth fixing. https://codereview.chromium.org/441803004/diff/60001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc ...
6 years, 4 months ago (2014-08-06 07:07:07 UTC) #4
benwells
All done. https://codereview.chromium.org/441803004/diff/60001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc (right): https://codereview.chromium.org/441803004/diff/60001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc#newcode376 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc:376: // views::ButtonListener: On 2014/08/06 07:07:06, calamity wrote: ...
6 years, 4 months ago (2014-08-06 08:14:00 UTC) #5
benwells
pkotwitz for owners of ash/frame. Before I send out more widely, is subclassing DefaultHeaderPainter OK? ...
6 years, 4 months ago (2014-08-06 08:16:21 UTC) #6
oshima
On 2014/08/06 01:34:02, benwells wrote: > +oshima for binary stuff. When I run the optimize ...
6 years, 4 months ago (2014-08-06 19:37:31 UTC) #7
pkotwicz
https://codereview.chromium.org/441803004/diff/100001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc (right): https://codereview.chromium.org/441803004/diff/100001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc#newcode90 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc:90: webapp_back_button_(NULL), Nit: Rename to web_app_back_button_ https://codereview.chromium.org/441803004/diff/100001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc#newcode128 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc:128: UpdateBackButtonState(false); The ...
6 years, 4 months ago (2014-08-06 21:36:49 UTC) #8
benwells
https://codereview.chromium.org/441803004/diff/100001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc (right): https://codereview.chromium.org/441803004/diff/100001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc#newcode132 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc:132: WebAppHeaderPainterAsh* header_painter = new WebAppHeaderPainterAsh; On 2014/08/06 21:36:48, pkotwicz ...
6 years, 4 months ago (2014-08-11 07:06:16 UTC) #9
pkotwicz
On 2014/08/11 07:06:16, benwells wrote: > https://codereview.chromium.org/441803004/diff/100001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc > File chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc (right): > > https://codereview.chromium.org/441803004/diff/100001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc#newcode132 > ...
6 years, 4 months ago (2014-08-11 16:49:22 UTC) #10
benwells
On 2014/08/06 19:37:31, oshima wrote: > On 2014/08/06 01:34:02, benwells wrote: > > +oshima for ...
6 years, 4 months ago (2014-08-12 11:17:29 UTC) #11
benwells
On 2014/08/06 19:37:31, oshima wrote: > On 2014/08/06 01:34:02, benwells wrote: > > +oshima for ...
6 years, 4 months ago (2014-08-12 11:17:30 UTC) #12
pkotwicz
benwells@, did you send me the mocks?
6 years, 4 months ago (2014-08-12 23:58:30 UTC) #13
benwells
Mocks sent offline. https://codereview.chromium.org/441803004/diff/100001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc (right): https://codereview.chromium.org/441803004/diff/100001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc#newcode90 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc:90: webapp_back_button_(NULL), On 2014/08/06 21:36:49, pkotwicz wrote: ...
6 years, 4 months ago (2014-08-13 00:53:45 UTC) #14
pkotwicz
https://codereview.chromium.org/441803004/diff/160001/ash/frame/custom_frame_view_ash.cc File ash/frame/custom_frame_view_ash.cc (right): https://codereview.chromium.org/441803004/diff/160001/ash/frame/custom_frame_view_ash.cc#newcode16 ash/frame/custom_frame_view_ash.cc:16: #include "ash/frame/header_painter_util.h" Nit: Remove unnecessary include https://codereview.chromium.org/441803004/diff/160001/ash/frame/default_header_painter.cc File ash/frame/default_header_painter.cc ...
6 years, 4 months ago (2014-08-13 01:19:48 UTC) #15
benwells
https://codereview.chromium.org/441803004/diff/160001/ash/frame/custom_frame_view_ash.cc File ash/frame/custom_frame_view_ash.cc (right): https://codereview.chromium.org/441803004/diff/160001/ash/frame/custom_frame_view_ash.cc#newcode16 ash/frame/custom_frame_view_ash.cc:16: #include "ash/frame/header_painter_util.h" On 2014/08/13 01:19:47, pkotwicz wrote: > Nit: ...
6 years, 4 months ago (2014-08-13 08:09:28 UTC) #16
pkotwicz
I think you can get an OWNER for the next review. Of course, you still ...
6 years, 4 months ago (2014-08-14 01:59:45 UTC) #17
benwells
jamescook - ptal for owners for ash stuff in c/b/ui/views/frame sky - ptal for browser.cc ...
6 years, 4 months ago (2014-08-14 04:42:50 UTC) #18
sky
browser.cc and browser_view.cc LGTM
6 years, 4 months ago (2014-08-14 16:49:36 UTC) #19
James Cook
c/b/ui/views/frame/* LGTM with a few suggestions Please make sure pkotwicz is satisfied before landing. https://codereview.chromium.org/441803004/diff/240001/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc ...
6 years, 4 months ago (2014-08-15 00:00:47 UTC) #20
benwells
pkotwicz: still waiting for your lg oshima: owners for binaries. oshima - fyi the crushing ...
6 years, 4 months ago (2014-08-18 05:59:13 UTC) #21
pkotwicz
LGTM with nits https://codereview.chromium.org/441803004/diff/260001/ash/frame/default_header_painter.cc File ash/frame/default_header_painter.cc (right): https://codereview.chromium.org/441803004/diff/260001/ash/frame/default_header_painter.cc#newcode232 ash/frame/default_header_painter.cc:232: LayoutLeftHeaderView(); Nit - This is slightly ...
6 years, 4 months ago (2014-08-19 00:17:07 UTC) #22
oshima
ash/resources lgtm
6 years, 4 months ago (2014-08-19 00:36:58 UTC) #23
benwells
https://codereview.chromium.org/441803004/diff/260001/ash/frame/default_header_painter.cc File ash/frame/default_header_painter.cc (right): https://codereview.chromium.org/441803004/diff/260001/ash/frame/default_header_painter.cc#newcode232 ash/frame/default_header_painter.cc:232: LayoutLeftHeaderView(); On 2014/08/19 00:17:07, pkotwicz wrote: > Nit - ...
6 years, 4 months ago (2014-08-19 01:42:43 UTC) #24
benwells
The CQ bit was checked by benwells@chromium.org
6 years, 4 months ago (2014-08-19 04:30:28 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/441803004/300001
6 years, 4 months ago (2014-08-19 04:32:37 UTC) #26
commit-bot: I haz the power
6 years, 4 months ago (2014-08-19 05:48:30 UTC) #27
Message was sent while issue was closed.
Committed patchset #15 (300001) as 290502

Powered by Google App Engine
This is Rietveld 408576698