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

Issue 2816193002: Introduce a type of View background that stays in sync with its host (Closed)

Created:
3 years, 8 months ago by Evan Stade
Modified:
3 years, 8 months ago
Reviewers:
msw, stevenjb, tdanderson
CC:
chromium-reviews, sadrul, rogerm+autofillwatch_chromium.org, dougt+watch_chromium.org, dmazzoni+watch_chromium.org, msw+watch_chromium.org, awdf+watch_chromium.org, aboxhall+watch_chromium.org, sebsg+autofillwatch_chromium.org, rouslan+autofill_chromium.org, je_julie, vabr+watchlistautofill_chromium.org, kalyank, vabr+watchlistpasswordmanager_chromium.org, Peter Beverloo, mlamouri+watch-notifications_chromium.org, yuzo+watch_chromium.org, hcarmona+bubble_chromium.org, gcasto+watchlist_chromium.org, rouslan+bubble_chromium.org, groby+bubble_chromium.org, mathp+autofillwatch_chromium.org, tfarina, nektar+watch_chromium.org, dtseng+watch_chromium.org, estade+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce a type of View background that stays in sync with its host View's native theme. This fixes a few bugs where we weren't using the right native theme, whether by not updating after the NativeTheme changes or by trying to access the NativeTheme before the View is added to a hierarchy (which yields the default NativeTheme --- for most platforms, this didn't effectively create a bug as there's only one NativeTheme). Best example is that now the sad tab respects the GTK native theme. Get rid of Ash's tray_constants::kBackgroundColor in favor of using the bubble background color from the NativeTheme. BUG=711183, 693282 TBR=stevenjb@chromium.org Review-Url: https://codereview.chromium.org/2816193002 Cr-Commit-Position: refs/heads/master@{#466847} Committed: https://chromium.googlesource.com/chromium/src/+/097f9cde453ea57eb4aa037f44add782391c5eb9

Patch Set 1 #

Patch Set 2 : one more #

Total comments: 2

Patch Set 3 : docs #

Patch Set 4 : fix UserView #

Patch Set 5 : . #

Total comments: 8

Patch Set 6 : tdanderson review + rebase #

Total comments: 15

Patch Set 7 : more review #

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -111 lines) Patch
M ash/system/audio/volume_view.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M ash/system/tray/tray_constants.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ash/system/tray/tray_constants.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ash/system/tray/tray_details_view.cc View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M ash/system/tray/tray_popup_utils.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -5 lines 0 comments Download
M ash/system/tray_accessibility.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M ash/system/user/user_card_view.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M ash/system/user/user_view.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M ash/system/user/user_view.cc View 1 2 3 4 5 6 7 8 12 chunks +51 lines, -43 lines 0 comments Download
M chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc View 2 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/sad_tab_view.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/sad_tab_view.cc View 5 chunks +7 lines, -27 lines 0 comments Download
M ui/message_center/views/message_bubble_base.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/message_center/views/message_bubble_base.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/views/background.h View 2 chunks +7 lines, -0 lines 0 comments Download
M ui/views/background.cc View 3 chunks +36 lines, -0 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.h View 2 chunks +3 lines, -1 line 0 comments Download
M ui/views/bubble/tray_bubble_view.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M ui/views/view.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/view_observer.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (30 generated)
Evan Stade
+msw for ui/views +tdanderson for ash/system I'll find an OWNER for c/b/ui/views after you two ...
3 years, 8 months ago (2017-04-14 19:07:51 UTC) #4
msw
ui/views lgtm with FIXME fixed https://codereview.chromium.org/2816193002/diff/20001/ui/views/view_observer.h File ui/views/view_observer.h (right): https://codereview.chromium.org/2816193002/diff/20001/ui/views/view_observer.h#newcode38 ui/views/view_observer.h:38: // FIXME FIXME
3 years, 8 months ago (2017-04-14 20:42:17 UTC) #7
Evan Stade
https://codereview.chromium.org/2816193002/diff/20001/ui/views/view_observer.h File ui/views/view_observer.h (right): https://codereview.chromium.org/2816193002/diff/20001/ui/views/view_observer.h#newcode38 ui/views/view_observer.h:38: // FIXME On 2017/04/14 20:42:17, msw wrote: > FIXME ...
3 years, 8 months ago (2017-04-17 15:20:03 UTC) #9
msw
https://codereview.chromium.org/2816193002/diff/80001/ash/system/user/user_view.cc File ash/system/user/user_view.cc (left): https://codereview.chromium.org/2816193002/diff/80001/ash/system/user/user_view.cc#oldcode126 ash/system/user/user_view.cc:126: if (policy == AddUserSessionPolicy::ALLOWED) { What are these changes? ...
3 years, 8 months ago (2017-04-17 18:04:53 UTC) #13
Evan Stade
https://codereview.chromium.org/2816193002/diff/80001/ash/system/user/user_view.cc File ash/system/user/user_view.cc (left): https://codereview.chromium.org/2816193002/diff/80001/ash/system/user/user_view.cc#oldcode126 ash/system/user/user_view.cc:126: if (policy == AddUserSessionPolicy::ALLOWED) { On 2017/04/17 18:04:53, msw ...
3 years, 8 months ago (2017-04-17 19:40:05 UTC) #14
msw
https://codereview.chromium.org/2816193002/diff/80001/ash/system/user/user_view.cc File ash/system/user/user_view.cc (left): https://codereview.chromium.org/2816193002/diff/80001/ash/system/user/user_view.cc#oldcode126 ash/system/user/user_view.cc:126: if (policy == AddUserSessionPolicy::ALLOWED) { On 2017/04/17 19:40:05, Evan ...
3 years, 8 months ago (2017-04-17 20:05:40 UTC) #15
tdanderson
ash/ lgtm https://codereview.chromium.org/2816193002/diff/80001/ash/system/audio/volume_view.cc File ash/system/audio/volume_view.cc (right): https://codereview.chromium.org/2816193002/diff/80001/ash/system/audio/volume_view.cc#newcode28 ash/system/audio/volume_view.cc:28: #include "ui/views/layout/fill_layout.h" #include native_theme.h here? Ditto for ...
3 years, 8 months ago (2017-04-18 19:14:46 UTC) #16
Evan Stade
tbr stevenjb for deletions in message center https://codereview.chromium.org/2816193002/diff/80001/ash/system/audio/volume_view.cc File ash/system/audio/volume_view.cc (right): https://codereview.chromium.org/2816193002/diff/80001/ash/system/audio/volume_view.cc#newcode28 ash/system/audio/volume_view.cc:28: #include "ui/views/layout/fill_layout.h" ...
3 years, 8 months ago (2017-04-19 15:59:01 UTC) #19
Evan Stade
msw: forgot you are an owner of c/b/u/v. Could you take a look at that ...
3 years, 8 months ago (2017-04-19 16:00:01 UTC) #23
stevenjb
ui/message_center lgtm
3 years, 8 months ago (2017-04-19 16:07:40 UTC) #26
msw
A couple questions reviewing c/b/u/v https://codereview.chromium.org/2816193002/diff/100001/chrome/browser/ui/views/sad_tab_view.cc File chrome/browser/ui/views/sad_tab_view.cc (right): https://codereview.chromium.org/2816193002/diff/100001/chrome/browser/ui/views/sad_tab_view.cc#newcode62 chrome/browser/ui/views/sad_tab_view.cc:62: title_ = new views::Label(l10n_util::GetStringUTF16(GetTitle())); ...
3 years, 8 months ago (2017-04-19 17:47:36 UTC) #29
Evan Stade
https://codereview.chromium.org/2816193002/diff/100001/chrome/browser/ui/views/sad_tab_view.cc File chrome/browser/ui/views/sad_tab_view.cc (right): https://codereview.chromium.org/2816193002/diff/100001/chrome/browser/ui/views/sad_tab_view.cc#newcode62 chrome/browser/ui/views/sad_tab_view.cc:62: title_ = new views::Label(l10n_util::GetStringUTF16(GetTitle())); On 2017/04/19 17:47:36, msw wrote: ...
3 years, 8 months ago (2017-04-19 18:25:53 UTC) #30
Evan Stade
https://codereview.chromium.org/2816193002/diff/100001/ash/system/user/user_view.cc File ash/system/user/user_view.cc (right): https://codereview.chromium.org/2816193002/diff/100001/ash/system/user/user_view.cc#newcode373 ash/system/user/user_view.cc:373: add_user_padding->AddChildView(button); oops, this will break the button pressed handler. ...
3 years, 8 months ago (2017-04-19 18:49:07 UTC) #31
msw
Hmm, this is less straightforward that it seemed to me at first. https://codereview.chromium.org/2816193002/diff/100001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc ...
3 years, 8 months ago (2017-04-19 19:00:54 UTC) #32
Evan Stade
https://codereview.chromium.org/2816193002/diff/100001/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/2816193002/diff/100001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode205 chrome/browser/ui/views/location_bar/location_bar_view.cc:205: ime_inline_autocomplete_view_->SetEnabledColor( On 2017/04/19 19:00:54, msw wrote: > This label's ...
3 years, 8 months ago (2017-04-20 04:44:22 UTC) #33
msw
https://codereview.chromium.org/2816193002/diff/100001/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/2816193002/diff/100001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode205 chrome/browser/ui/views/location_bar/location_bar_view.cc:205: ime_inline_autocomplete_view_->SetEnabledColor( On 2017/04/20 04:44:22, Evan Stade wrote: > On ...
3 years, 8 months ago (2017-04-20 18:21:46 UTC) #34
Evan Stade
https://codereview.chromium.org/2816193002/diff/100001/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/2816193002/diff/100001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode205 chrome/browser/ui/views/location_bar/location_bar_view.cc:205: ime_inline_autocomplete_view_->SetEnabledColor( On 2017/04/20 18:21:45, msw wrote: > On 2017/04/20 ...
3 years, 8 months ago (2017-04-20 21:18:45 UTC) #35
msw
lgtm
3 years, 8 months ago (2017-04-20 21:21:21 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2816193002/180001
3 years, 8 months ago (2017-04-25 00:08:00 UTC) #47
commit-bot: I haz the power
Committed patchset #10 (id:180001) as https://chromium.googlesource.com/chromium/src/+/097f9cde453ea57eb4aa037f44add782391c5eb9
3 years, 8 months ago (2017-04-25 01:04:01 UTC) #50
pkalinnikov
3 years, 8 months ago (2017-04-25 12:30:22 UTC) #51
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in
https://codereview.chromium.org/2835233005/ by pkalinnikov@chromium.org.

The reason for reverting is: Seems causing a lot of test crashes on "Linux
Chromium OS ASan" bots (ash_unittests, browser_tests, interactive_ui_tests,
unit_tests)..

Powered by Google App Engine
This is Rietveld 408576698