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

Issue 166443004: Add frame color option to packaged app windows. (Closed)

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

Description

Add frame color option to packaged app windows. If app windows are created with a frame color option, that color is used for the frame. If no color is supplied a native style look is used instead. This is currently implemented on linux aura and windows only. This change also removes the --apps-use-native-frame flag on windows. BUG=339558 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252548

Patch Set 1 #

Total comments: 35

Patch Set 2 : Comments #

Total comments: 3

Patch Set 3 : Added DCHECK #

Patch Set 4 : Disable tests on non-aura #

Patch Set 5 : Pafooey #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -53 lines) Patch
M apps/app_window.h View 1 chunk +3 lines, -0 lines 0 comments Download
M apps/app_window.cc View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M apps/ui/native_app_window.h View 2 chunks +5 lines, -0 lines 0 comments Download
M apps/ui/views/app_window_frame_view.h View 2 chunks +2 lines, -0 lines 0 comments Download
M apps/ui/views/app_window_frame_view.cc View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/apps/app_window_browsertest.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/app_window/app_window_api.h View 1 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/app_window/app_window_api.cc View 1 2 3 4 10 chunks +91 lines, -17 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/extension_action_api.cc View 1 2 3 4 5 1 chunk +11 lines, -16 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/extension_browser_actions_api_unittest.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm View 1 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/apps/native_app_window_gtk.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/apps/native_app_window_gtk.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/native_app_window_views.h View 1 2 3 4 5 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/views/apps/native_app_window_views.cc View 1 2 3 4 5 8 chunks +13 lines, -15 lines 0 comments Download
M chrome/common/extensions/api/app_window.idl View 1 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/app_window_custom_bindings.js View 1 2 3 4 5 2 chunks +13 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/window_api/test.js View 2 chunks +112 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
benwells
6 years, 10 months ago (2014-02-18 00:16:46 UTC) #1
Matt Giuca
Looks pretty good (visually, I mean ;)). https://codereview.chromium.org/166443004/diff/1/apps/app_window.h File apps/app_window.h (right): https://codereview.chromium.org/166443004/diff/1/apps/app_window.h#newcode1 apps/app_window.h:1: // Copyright ...
6 years, 10 months ago (2014-02-18 06:03:17 UTC) #2
benwells
https://codereview.chromium.org/166443004/diff/1/apps/app_window.h File apps/app_window.h (right): https://codereview.chromium.org/166443004/diff/1/apps/app_window.h#newcode1 apps/app_window.h:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 10 months ago (2014-02-18 07:47:25 UTC) #3
Matt Giuca
lgtm https://codereview.chromium.org/166443004/diff/1/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/166443004/diff/1/chrome/browser/ui/views/apps/native_app_window_views.cc#newcode458 chrome/browser/ui/views/apps/native_app_window_views.cc:458: bool NativeAppWindowViews::ShouldUseNativeFrame() const { So, to confirm: you're ...
6 years, 10 months ago (2014-02-19 02:26:42 UTC) #4
benwells
On 2014/02/19 02:26:42, Matt Giuca wrote: > lgtm > > https://codereview.chromium.org/166443004/diff/1/chrome/browser/ui/views/apps/native_app_window_views.cc > File chrome/browser/ui/views/apps/native_app_window_views.cc (right): ...
6 years, 10 months ago (2014-02-19 02:33:28 UTC) #5
benwells
https://codereview.chromium.org/166443004/diff/190001/chrome/browser/extensions/api/extension_action/extension_action_api.cc File chrome/browser/extensions/api/extension_action/extension_action_api.cc (right): https://codereview.chromium.org/166443004/diff/190001/chrome/browser/extensions/api/extension_action/extension_action_api.cc#newcode657 chrome/browser/extensions/api/extension_action/extension_action_api.cc:657: *result = SkColorSetARGB(255, color_bytes[0], color_bytes[1], color_bytes[2]); On 2014/02/19 02:26:43, ...
6 years, 10 months ago (2014-02-19 05:28:30 UTC) #6
benwells
The CQ bit was checked by benwells@chromium.org
6 years, 10 months ago (2014-02-19 05:28:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/166443004/320002
6 years, 10 months ago (2014-02-19 05:28:54 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-19 06:56:50 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 10 months ago (2014-02-19 06:56:51 UTC) #10
benwells
The CQ bit was checked by benwells@chromium.org
6 years, 10 months ago (2014-02-19 23:18:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/166443004/560001
6 years, 10 months ago (2014-02-19 23:59:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/166443004/560001
6 years, 10 months ago (2014-02-20 01:15:18 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-20 01:31:25 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 10 months ago (2014-02-20 01:31:26 UTC) #15
benwells
The CQ bit was checked by benwells@chromium.org
6 years, 10 months ago (2014-02-20 01:50:15 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/166443004/560001
6 years, 10 months ago (2014-02-20 02:06:37 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-20 02:30:18 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 10 months ago (2014-02-20 02:30:19 UTC) #19
benwells
The CQ bit was checked by benwells@chromium.org
6 years, 10 months ago (2014-02-20 03:01:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/166443004/560001
6 years, 10 months ago (2014-02-20 05:17:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/166443004/560001
6 years, 10 months ago (2014-02-20 09:17:56 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/166443004/560001
6 years, 10 months ago (2014-02-20 12:34:12 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-20 12:51:18 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 10 months ago (2014-02-20 12:51:18 UTC) #25
benwells
The CQ bit was checked by benwells@chromium.org
6 years, 10 months ago (2014-02-21 03:29:56 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/166443004/980001
6 years, 10 months ago (2014-02-21 03:30:17 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-21 04:40:48 UTC) #28
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=267583
6 years, 10 months ago (2014-02-21 04:40:49 UTC) #29
benwells
The CQ bit was checked by benwells@chromium.org
6 years, 10 months ago (2014-02-21 07:52:36 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/166443004/1190001
6 years, 10 months ago (2014-02-21 07:52:51 UTC) #31
commit-bot: I haz the power
6 years, 10 months ago (2014-02-21 14:30:28 UTC) #32
Message was sent while issue was closed.
Change committed as 252548

Powered by Google App Engine
This is Rietveld 408576698