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

Issue 1438513003: [MD] Implement incognito colors as a NativeTheme (for Aura). (Closed)

Created:
5 years, 1 month ago by Evan Stade
Modified:
5 years, 1 month ago
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MD] Implement incognito colors as a NativeTheme For ChromeOS (and at least for now, Linux), this is NativeThemeAuraDark. For Windows, this is NativeThemeWinDark, which paints controls like NativeThemeWin but uses NativeThemeAuraDark for colors. This CL focuses on the location bar and omnibox. It adds a number of colors (most of those which have already been spec'd) but is missing lots more colors. BUG=501377 Committed: https://crrev.com/563454636cfe3df6a57fff84560e8a89e4f6b175 Cr-Commit-Position: refs/heads/master@{#359956}

Patch Set 1 #

Patch Set 2 : themeprovider provides nativetheme #

Patch Set 3 : dont instantly crash #

Patch Set 4 : use ViewsDelegate #

Total comments: 7

Patch Set 5 : fix fn name and constness #

Patch Set 6 : add some more colors, rdy for review #

Patch Set 7 : works better if you git add new files #

Patch Set 8 : fix win, linux, android compiles issues #

Total comments: 10

Patch Set 9 : widget override #

Patch Set 10 : fix win #

Patch Set 11 : iterate on chips #

Total comments: 8

Patch Set 12 : init param, pkasting feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -91 lines) Patch
M chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +56 lines, -51 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 4 5 3 chunks +6 lines, -8 lines 0 comments Download
M ui/gfx/color_palette.h View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M ui/native_theme/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M ui/native_theme/common_theme.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/native_theme/native_theme.gyp View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme_aura.cc View 3 chunks +5 lines, -8 lines 0 comments Download
A ui/native_theme/native_theme_dark_aura.h View 1 2 3 4 5 6 7 8 1 chunk +31 lines, -0 lines 0 comments Download
A ui/native_theme/native_theme_dark_aura.cc View 1 2 3 4 5 6 7 8 1 chunk +69 lines, -0 lines 0 comments Download
A ui/native_theme/native_theme_dark_win.h View 1 2 3 4 5 6 7 8 1 chunk +30 lines, -0 lines 0 comments Download
A ui/native_theme/native_theme_dark_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +28 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme_win.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/widget/widget.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +19 lines, -15 lines 0 comments Download

Messages

Total messages: 55 (13 generated)
Evan Stade
Before I go too far in this direction, what do you think of the general ...
5 years, 1 month ago (2015-11-10 01:26:23 UTC) #2
Peter Kasting
It seems like an OK general idea, but I'd like to see what it would ...
5 years, 1 month ago (2015-11-10 01:43:00 UTC) #3
tdanderson
On 2015/11/10 01:43:00, Peter Kasting wrote: > It seems like an OK general idea, but ...
5 years, 1 month ago (2015-11-10 15:27:16 UTC) #4
tdanderson
+rogerta@ I believe you are doing work with system theming on Windows.
5 years, 1 month ago (2015-11-10 15:28:35 UTC) #6
Roger Tawa OOO till Jul 10th
On 2015/11/10 15:28:35, tdanderson wrote: > +rogerta@ I believe you are doing work with system ...
5 years, 1 month ago (2015-11-10 16:03:04 UTC) #7
Roger Tawa OOO till Jul 10th
On 2015/11/10 16:03:04, Roger Tawa wrote: > On 2015/11/10 15:28:35, tdanderson wrote: > > +rogerta@ ...
5 years, 1 month ago (2015-11-10 16:03:30 UTC) #8
Evan Stade
On 2015/11/10 15:27:16, tdanderson wrote: > On 2015/11/10 01:43:00, Peter Kasting wrote: > > It ...
5 years, 1 month ago (2015-11-10 17:00:55 UTC) #9
Evan Stade
On 2015/11/10 17:00:55, Evan Stade wrote: > On 2015/11/10 15:27:16, tdanderson wrote: > > On ...
5 years, 1 month ago (2015-11-10 18:10:25 UTC) #10
Evan Stade
To answer Peter's question about how to use this on Windows (and CrOS): I tried ...
5 years, 1 month ago (2015-11-11 00:24:49 UTC) #11
Peter Kasting
https://codereview.chromium.org/1438513003/diff/60001/ui/native_theme/native_theme_aura_dark.h File ui/native_theme/native_theme_aura_dark.h (right): https://codereview.chromium.org/1438513003/diff/60001/ui/native_theme/native_theme_aura_dark.h#newcode15 ui/native_theme/native_theme_aura_dark.h:15: class NATIVE_THEME_EXPORT NativeThemeAuraDark : public NativeThemeAura { I'm a ...
5 years, 1 month ago (2015-11-11 00:34:46 UTC) #12
Evan Stade
https://codereview.chromium.org/1438513003/diff/60001/ui/native_theme/native_theme_aura_dark.h File ui/native_theme/native_theme_aura_dark.h (right): https://codereview.chromium.org/1438513003/diff/60001/ui/native_theme/native_theme_aura_dark.h#newcode15 ui/native_theme/native_theme_aura_dark.h:15: class NATIVE_THEME_EXPORT NativeThemeAuraDark : public NativeThemeAura { On 2015/11/11 ...
5 years, 1 month ago (2015-11-11 01:05:32 UTC) #13
Peter Kasting
https://codereview.chromium.org/1438513003/diff/60001/ui/native_theme/native_theme_aura_dark.h File ui/native_theme/native_theme_aura_dark.h (right): https://codereview.chromium.org/1438513003/diff/60001/ui/native_theme/native_theme_aura_dark.h#newcode15 ui/native_theme/native_theme_aura_dark.h:15: class NATIVE_THEME_EXPORT NativeThemeAuraDark : public NativeThemeAura { On 2015/11/11 ...
5 years, 1 month ago (2015-11-11 01:25:48 UTC) #14
Evan Stade
https://codereview.chromium.org/1438513003/diff/60001/ui/native_theme/native_theme_aura_dark.h File ui/native_theme/native_theme_aura_dark.h (right): https://codereview.chromium.org/1438513003/diff/60001/ui/native_theme/native_theme_aura_dark.h#newcode15 ui/native_theme/native_theme_aura_dark.h:15: class NATIVE_THEME_EXPORT NativeThemeAuraDark : public NativeThemeAura { > > ...
5 years, 1 month ago (2015-11-11 01:32:30 UTC) #15
Peter Kasting
On 2015/11/11 01:32:30, Evan Stade wrote: > https://codereview.chromium.org/1438513003/diff/60001/ui/native_theme/native_theme_aura_dark.h > File ui/native_theme/native_theme_aura_dark.h (right): > > https://codereview.chromium.org/1438513003/diff/60001/ui/native_theme/native_theme_aura_dark.h#newcode15 ...
5 years, 1 month ago (2015-11-11 01:36:41 UTC) #16
Evan Stade
+sky, this CL is not ready for full review, but what do you think of ...
5 years, 1 month ago (2015-11-11 01:38:23 UTC) #18
sky
The other option is to specify the NativeTheme in Widget::InitParams. That seems to give quite ...
5 years, 1 month ago (2015-11-11 18:59:35 UTC) #19
Evan Stade
It might work. Two issues: 1. It seems like it would be a lot of ...
5 years, 1 month ago (2015-11-11 19:24:39 UTC) #20
sky
Fair enough. Add the override you have on the delegate. -Scott On Wed, Nov 11, ...
5 years, 1 month ago (2015-11-11 20:35:06 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1438513003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1438513003/100001
5 years, 1 month ago (2015-11-12 17:44:58 UTC) #23
Evan Stade
This CL is now ready for review. Peter, PTAL everything under chrome/. Scott, PTAL everything ...
5 years, 1 month ago (2015-11-12 17:49:08 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1438513003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1438513003/120001
5 years, 1 month ago (2015-11-12 17:51:37 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile_dbg/builds/84411) linux_chromium_rel_ng on ...
5 years, 1 month ago (2015-11-12 18:05:09 UTC) #30
sky
https://codereview.chromium.org/1438513003/diff/140001/ui/native_theme/BUILD.gn File ui/native_theme/BUILD.gn (right): https://codereview.chromium.org/1438513003/diff/140001/ui/native_theme/BUILD.gn#newcode45 ui/native_theme/BUILD.gn:45: "native_theme_win_dark.cc", Generally platform specific files end with the platform, ...
5 years, 1 month ago (2015-11-12 21:58:29 UTC) #31
Evan Stade
(no new patch uploaded yet) https://codereview.chromium.org/1438513003/diff/140001/ui/native_theme/BUILD.gn File ui/native_theme/BUILD.gn (right): https://codereview.chromium.org/1438513003/diff/140001/ui/native_theme/BUILD.gn#newcode45 ui/native_theme/BUILD.gn:45: "native_theme_win_dark.cc", On 2015/11/12 21:58:28, ...
5 years, 1 month ago (2015-11-12 22:11:11 UTC) #32
sky
https://codereview.chromium.org/1438513003/diff/140001/ui/native_theme/BUILD.gn File ui/native_theme/BUILD.gn (right): https://codereview.chromium.org/1438513003/diff/140001/ui/native_theme/BUILD.gn#newcode45 ui/native_theme/BUILD.gn:45: "native_theme_win_dark.cc", On 2015/11/12 22:11:11, Evan Stade wrote: > On ...
5 years, 1 month ago (2015-11-12 23:45:52 UTC) #33
Evan Stade
I talked to Sebastien some more this morning, he clarified that the different colors should ...
5 years, 1 month ago (2015-11-13 18:11:40 UTC) #34
Peter Kasting
LGTM https://codereview.chromium.org/1438513003/diff/200001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/1438513003/diff/200001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode334 chrome/browser/ui/views/location_bar/location_bar_view.cc:334: : SkColorSetRGB(7, 149, 0); I think you need ...
5 years, 1 month ago (2015-11-14 02:46:08 UTC) #35
Evan Stade
Scott appears to be busy, so +sadrul could you take a look at //ui/
5 years, 1 month ago (2015-11-16 16:09:35 UTC) #37
sky
https://codereview.chromium.org/1438513003/diff/200001/chrome/browser/ui/views/frame/browser_frame.cc File chrome/browser/ui/views/frame/browser_frame.cc (right): https://codereview.chromium.org/1438513003/diff/200001/chrome/browser/ui/views/frame/browser_frame.cc#newcode170 chrome/browser/ui/views/frame/browser_frame.cc:170: const ui::NativeTheme* BrowserFrame::GetNativeTheme() const { You sure you don't ...
5 years, 1 month ago (2015-11-16 16:10:17 UTC) #38
sky
Or just behind. On Mon, Nov 16, 2015 at 8:09 AM, <estade@chromium.org> wrote: > Scott ...
5 years, 1 month ago (2015-11-16 16:10:49 UTC) #39
Evan Stade
> Or just behind. thanks for taking a look, I wasn't sure what the "busy" ...
5 years, 1 month ago (2015-11-16 17:52:25 UTC) #40
sky
I prefer the init param, seems more flexible for other cases that don't necessarily subclass. ...
5 years, 1 month ago (2015-11-16 18:06:23 UTC) #41
Evan Stade
https://codereview.chromium.org/1438513003/diff/200001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/1438513003/diff/200001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode334 chrome/browser/ui/views/location_bar/location_bar_view.cc:334: : SkColorSetRGB(7, 149, 0); On 2015/11/14 02:46:08, Peter Kasting ...
5 years, 1 month ago (2015-11-16 19:36:33 UTC) #42
Evan Stade
(also switched to init param)
5 years, 1 month ago (2015-11-16 19:37:27 UTC) #43
Peter Kasting
LGTM
5 years, 1 month ago (2015-11-16 21:28:04 UTC) #44
sky
LGTM
5 years, 1 month ago (2015-11-16 21:43:47 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1438513003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1438513003/220001
5 years, 1 month ago (2015-11-16 22:59:47 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/80446) linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 1 month ago (2015-11-16 23:07:06 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1438513003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1438513003/220001
5 years, 1 month ago (2015-11-16 23:44:26 UTC) #51
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 1 month ago (2015-11-17 00:26:58 UTC) #52
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/563454636cfe3df6a57fff84560e8a89e4f6b175 Cr-Commit-Position: refs/heads/master@{#359956}
5 years, 1 month ago (2015-11-17 00:27:54 UTC) #53
Evan Stade
5 years, 1 month ago (2015-11-17 00:47:56 UTC) #54
Message was sent while issue was closed.
On 2015/11/17 00:27:54, commit-bot: I haz the power wrote:
> Patchset 12 (id:??) landed as
> https://crrev.com/563454636cfe3df6a57fff84560e8a89e4f6b175
> Cr-Commit-Position: refs/heads/master@{#359956}

just noticed this patch broke menu theming, on MD and pre-MD. Working on a fix.

Powered by Google App Engine
This is Rietveld 408576698