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

Issue 213743017: Remove title and icon from chrome apps native style title bars. (Closed)

Created:
6 years, 8 months ago by benwells
Modified:
6 years, 8 months ago
Reviewers:
tapted, sky, Matt Giuca
CC:
chromium-reviews, tfarina, chromium-apps-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Remove title and icon from chrome apps native style title bars. These windows aren't meant to have titles or icons, but still need to get a proper title as far as the OS is concerned. This means using a custom but glass frame, similarly to how unthemed browser windows look. BUG=339558 TEST=Try out frame:chrome app windows windows on Windows 7, 8 and XP. Use the windows in various states (maximised, fullscreen, normal). Make sure they work after switching in and out of aero mode. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262516 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265598 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265860

Patch Set 1 #

Patch Set 2 : Nicer #

Total comments: 35

Patch Set 3 : Rebase #

Total comments: 1

Patch Set 4 : Comments #

Patch Set 5 : Compile #

Patch Set 6 : Rebase #

Patch Set 7 : Update for easy resizing on Linux #

Patch Set 8 : git cl format #

Patch Set 9 : Fixed leak in test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+511 lines, -108 lines) Patch
M apps/ui/views/app_window_frame_view.h View 1 2 3 1 chunk +20 lines, -14 lines 0 comments Download
M apps/ui/views/app_window_frame_view.cc View 1 2 3 4 5 6 7 3 chunks +25 lines, -23 lines 0 comments Download
M apps/ui/views/native_app_window_views.h View 2 chunks +2 lines, -1 line 0 comments Download
A chrome/browser/ui/views/apps/app_window_desktop_native_widget_aura_win.h View 1 2 3 4 5 6 7 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/apps/app_window_desktop_native_widget_aura_win.cc View 1 2 3 4 5 6 7 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.h View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc View 1 2 3 4 5 6 7 1 chunk +78 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views.h View 1 2 3 4 5 6 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views.cc View 1 2 3 4 5 6 6 chunks +51 lines, -58 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_win.h View 1 2 3 4 5 6 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc View 1 2 3 4 5 6 7 5 chunks +16 lines, -2 lines 0 comments Download
A chrome/browser/ui/views/apps/glass_app_window_frame_view_win.h View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc View 1 2 3 4 5 6 7 1 chunk +130 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/shaped_app_window_targeter_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
benwells
tapted for apps specific stuff (and anything else you wanna look at) sadrul for the ...
6 years, 8 months ago (2014-04-03 07:37:02 UTC) #1
sadrul
+sky@ On 2014/04/03 07:37:02, benwells wrote: > tapted for apps specific stuff (and anything else ...
6 years, 8 months ago (2014-04-03 17:10:55 UTC) #2
tapted
sorry I am not awesomely familiar with the Windows APIs either, so maybe some silly ...
6 years, 8 months ago (2014-04-03 19:40:24 UTC) #3
sky
https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/apps/app_window_desktop_native_widget_aura_win.h File chrome/browser/ui/views/apps/app_window_desktop_native_widget_aura_win.h (right): https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/apps/app_window_desktop_native_widget_aura_win.h#newcode39 chrome/browser/ui/views/apps/app_window_desktop_native_widget_aura_win.h:39: AppWindowDesktopWindowTreeHostWin* app_window_desktop_window_tree_host_; Is there a reason you need as ...
6 years, 8 months ago (2014-04-03 19:43:55 UTC) #4
benwells
https://codereview.chromium.org/213743017/diff/20001/apps/ui/views/app_window_frame_view.h File apps/ui/views/app_window_frame_view.h (right): https://codereview.chromium.org/213743017/diff/20001/apps/ui/views/app_window_frame_view.h#newcode51 apps/ui/views/app_window_frame_view.h:51: AppWindowFrameView(views::Widget* widget, On 2014/04/03 19:40:24, tapted wrote: > I ...
6 years, 8 months ago (2014-04-04 06:50:43 UTC) #5
tapted
lgtm https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/apps/glass_app_window_frame_view.cc File chrome/browser/ui/views/apps/glass_app_window_frame_view.cc (right): https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/apps/glass_app_window_frame_view.cc#newcode34 chrome/browser/ui/views/apps/glass_app_window_frame_view.cc:34: int frame_size = GetSystemMetrics(SM_CXSIZEFRAME) - 1; On 2014/04/04 ...
6 years, 8 months ago (2014-04-04 16:15:18 UTC) #6
sky
LGTM
6 years, 8 months ago (2014-04-04 17:09:00 UTC) #7
benwells
On 2014/04/04 16:15:18, tapted wrote: > lgtm > > https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/apps/glass_app_window_frame_view.cc > File chrome/browser/ui/views/apps/glass_app_window_frame_view.cc (right): > ...
6 years, 8 months ago (2014-04-08 04:38:36 UTC) #8
benwells
On 2014/04/08 04:38:36, benwells wrote: > On 2014/04/04 16:15:18, tapted wrote: > > lgtm > ...
6 years, 8 months ago (2014-04-08 19:21:50 UTC) #9
benwells
The CQ bit was checked by benwells@chromium.org
6 years, 8 months ago (2014-04-08 19:22:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/213743017/80001
6 years, 8 months ago (2014-04-08 19:22:48 UTC) #11
commit-bot: I haz the power
Change committed as 262516
6 years, 8 months ago (2014-04-08 21:49:24 UTC) #12
Matt Giuca
This change was reverted (https://codereview.chromium.org/229343004) because it conflicted with another change I was planning to ...
6 years, 8 months ago (2014-04-10 05:53:49 UTC) #13
benwells
+mgiuca for the linux resizing stuff that is now incorporated.
6 years, 8 months ago (2014-04-22 06:48:11 UTC) #14
Matt Giuca
Merge with my Linux changes lgtm
6 years, 8 months ago (2014-04-23 05:02:10 UTC) #15
benwells
The CQ bit was checked by benwells@chromium.org
6 years, 8 months ago (2014-04-23 06:32:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/213743017/140001
6 years, 8 months ago (2014-04-23 06:32:16 UTC) #17
commit-bot: I haz the power
Change committed as 265598
6 years, 8 months ago (2014-04-23 09:22:43 UTC) #18
benwells
The CQ bit was checked by benwells@chromium.org
6 years, 8 months ago (2014-04-24 01:11:05 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/213743017/160001
6 years, 8 months ago (2014-04-24 01:11:52 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 03:08:18 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit tryserver.chromium on win_chromium_x64_rel
6 years, 8 months ago (2014-04-24 03:08:19 UTC) #22
benwells
The CQ bit was checked by benwells@chromium.org
6 years, 8 months ago (2014-04-24 03:13:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/213743017/160001
6 years, 8 months ago (2014-04-24 03:14:30 UTC) #24
commit-bot: I haz the power
6 years, 8 months ago (2014-04-24 05:18:20 UTC) #25
Message was sent while issue was closed.
Change committed as 265860

Powered by Google App Engine
This is Rietveld 408576698