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

Issue 75873002: [SiteChip] Add the basic painting of the site chip button (Closed)

Created:
7 years, 1 month ago by Greg Billock
Modified:
7 years ago
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 32

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : . #

Patch Set 4 : Update spacing #

Patch Set 5 : Rebase #

Patch Set 6 : Use constants #

Total comments: 40

Patch Set 7 : Move painter, etc. #

Total comments: 11

Patch Set 8 : . #

Patch Set 9 : Use MediumFont #

Total comments: 5

Patch Set 10 : Don't addChild if site chip not shown #

Total comments: 2

Patch Set 11 : Fix asan and focus. #

Total comments: 6

Patch Set 12 : Move focus set to ToolbarView #

Total comments: 4

Patch Set 13 : . #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -1 line) Patch
A chrome/browser/ui/views/toolbar/site_chip_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/toolbar/site_chip_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +121 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.h View 1 2 3 4 7 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +37 lines, -1 line 1 comment Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
Greg Billock
7 years, 1 month ago (2013-11-19 01:16:23 UTC) #1
Peter Kasting
https://codereview.chromium.org/75873002/diff/1/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/75873002/diff/1/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode29 chrome/browser/ui/views/toolbar/site_chip_view.cc:29: toolbar_view_(toolbar_view) {} Nit: I slightly prefer linebreaking between braces ...
7 years, 1 month ago (2013-11-19 02:47:31 UTC) #2
Greg Billock
https://codereview.chromium.org/75873002/diff/1/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/75873002/diff/1/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode29 chrome/browser/ui/views/toolbar/site_chip_view.cc:29: toolbar_view_(toolbar_view) {} On 2013/11/19 02:47:32, Peter Kasting wrote: > ...
7 years, 1 month ago (2013-11-20 01:27:34 UTC) #3
Greg Billock
https://codereview.chromium.org/75873002/diff/1/chrome/browser/ui/views/toolbar/toolbar_view.cc File chrome/browser/ui/views/toolbar/toolbar_view.cc (right): https://codereview.chromium.org/75873002/diff/1/chrome/browser/ui/views/toolbar/toolbar_view.cc#newcode231 chrome/browser/ui/views/toolbar/toolbar_view.cc:231: site_chip_view_ = new SiteChipView(this); On 2013/11/19 02:47:32, Peter Kasting ...
7 years, 1 month ago (2013-11-20 01:28:48 UTC) #4
Peter Kasting
LGTM https://codereview.chromium.org/75873002/diff/1/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/75873002/diff/1/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode35 chrome/browser/ui/views/toolbar/site_chip_view.cc:35: toolbar_view_->location_bar()->GetLocationEntry()->SetFocus(); On 2013/11/20 01:27:35, Greg Billock wrote: > ...
7 years, 1 month ago (2013-11-20 01:49:12 UTC) #5
Greg Billock
Awaiting parent CL before submitting. https://codereview.chromium.org/75873002/diff/1/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/75873002/diff/1/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode35 chrome/browser/ui/views/toolbar/site_chip_view.cc:35: toolbar_view_->location_bar()->GetLocationEntry()->SetFocus(); On 2013/11/20 01:49:13, ...
7 years, 1 month ago (2013-11-21 19:29:34 UTC) #6
Greg Billock
On 2013/11/21 19:29:34, Greg Billock wrote: > Awaiting parent CL before submitting. > > https://codereview.chromium.org/75873002/diff/1/chrome/browser/ui/views/toolbar/site_chip_view.cc ...
7 years ago (2013-12-02 20:04:50 UTC) #7
Peter Kasting
https://codereview.chromium.org/75873002/diff/290001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/75873002/diff/290001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode30 chrome/browser/ui/views/toolbar/site_chip_view.cc:30: const int SiteChipView::kEdgeThickness = 4; Is this a value ...
7 years ago (2013-12-03 00:58:10 UTC) #8
Greg Billock
A couple issues left -- FontList management the most salient. https://codereview.chromium.org/75873002/diff/290001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/75873002/diff/290001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode30 ...
7 years ago (2013-12-03 17:35:08 UTC) #9
Peter Kasting
https://codereview.chromium.org/75873002/diff/290001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/75873002/diff/290001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode32 chrome/browser/ui/views/toolbar/site_chip_view.cc:32: const int SiteChipView::kTrailingLabelMargin = 3; On 2013/12/03 17:35:08, Greg ...
7 years ago (2013-12-03 19:08:19 UTC) #10
Greg Billock
On 2013/12/03 19:08:19, Peter Kasting wrote: > https://codereview.chromium.org/75873002/diff/290001/chrome/browser/ui/views/toolbar/site_chip_view.cc > File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): > > https://codereview.chromium.org/75873002/diff/290001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode32 ...
7 years ago (2013-12-03 19:53:48 UTC) #11
Peter Kasting
https://codereview.chromium.org/75873002/diff/310001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/75873002/diff/310001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode29 chrome/browser/ui/views/toolbar/site_chip_view.cc:29: const int kEdgeThickness = 4; I think we can ...
7 years ago (2013-12-03 23:04:51 UTC) #12
Greg Billock
Also: using MediumFont per Alan. Removing the omnibox font access. https://codereview.chromium.org/75873002/diff/310001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/75873002/diff/310001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode29 ...
7 years ago (2013-12-04 00:33:33 UTC) #13
Peter Kasting
LGTM https://codereview.chromium.org/75873002/diff/310001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/75873002/diff/310001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode29 chrome/browser/ui/views/toolbar/site_chip_view.cc:29: const int kEdgeThickness = 4; On 2013/12/04 00:33:34, ...
7 years ago (2013-12-04 00:55:29 UTC) #14
Peter Kasting
Forgot to send this https://codereview.chromium.org/75873002/diff/350001/chrome/browser/ui/views/toolbar/site_chip_view.h File chrome/browser/ui/views/toolbar/site_chip_view.h (right): https://codereview.chromium.org/75873002/diff/350001/chrome/browser/ui/views/toolbar/site_chip_view.h#newcode36 chrome/browser/ui/views/toolbar/site_chip_view.h:36: // true if the experiment ...
7 years ago (2013-12-04 00:57:31 UTC) #15
Greg Billock
https://codereview.chromium.org/75873002/diff/350001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/75873002/diff/350001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode32 chrome/browser/ui/views/toolbar/site_chip_view.cc:32: const int kTrailingLabelMargin = 2; On 2013/12/04 00:55:30, Peter ...
7 years ago (2013-12-04 04:05:56 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/75873002/350001
7 years ago (2013-12-04 04:06:24 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=180594
7 years ago (2013-12-04 06:07:05 UTC) #18
Greg Billock
Switched to not adding the site chip as a child if it isn't shown -- ...
7 years ago (2013-12-04 17:01:17 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/75873002/370001
7 years ago (2013-12-04 17:01:38 UTC) #20
commit-bot: I haz the power
Change committed as 238732
7 years ago (2013-12-04 19:06:43 UTC) #21
Peter Kasting
On 2013/12/04 17:01:17, Greg Billock wrote: > Switched to not adding the site chip as ...
7 years ago (2013-12-04 20:02:50 UTC) #22
Greg Billock
On 2013/12/04 20:02:50, Peter Kasting wrote: > On 2013/12/04 17:01:17, Greg Billock wrote: > > ...
7 years ago (2013-12-04 20:15:32 UTC) #23
James Cook
https://codereview.chromium.org/75873002/diff/370001/chrome/browser/ui/views/toolbar/toolbar_view.cc File chrome/browser/ui/views/toolbar/toolbar_view.cc (right): https://codereview.chromium.org/75873002/diff/370001/chrome/browser/ui/views/toolbar/toolbar_view.cc#newcode232 chrome/browser/ui/views/toolbar/toolbar_view.cc:232: site_chip_view_ = new SiteChipView(this); drive by from sheriff: I ...
7 years ago (2013-12-04 20:43:51 UTC) #24
michaeln
Hi Greg, We had to revert this change due to ASAN bot failures. http://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20ASAN%20Tests%20%283%29/builds/11899 Here's ...
7 years ago (2013-12-04 20:55:41 UTC) #25
Peter Kasting
https://codereview.chromium.org/75873002/diff/370001/chrome/browser/ui/views/toolbar/toolbar_view.cc File chrome/browser/ui/views/toolbar/toolbar_view.cc (right): https://codereview.chromium.org/75873002/diff/370001/chrome/browser/ui/views/toolbar/toolbar_view.cc#newcode232 chrome/browser/ui/views/toolbar/toolbar_view.cc:232: site_chip_view_ = new SiteChipView(this); On 2013/12/04 20:43:52, James Cook ...
7 years ago (2013-12-04 21:23:51 UTC) #26
Greg Billock
On 2013/12/04 21:23:51, Peter Kasting wrote: > https://codereview.chromium.org/75873002/diff/370001/chrome/browser/ui/views/toolbar/toolbar_view.cc > File chrome/browser/ui/views/toolbar/toolbar_view.cc (right): > > https://codereview.chromium.org/75873002/diff/370001/chrome/browser/ui/views/toolbar/toolbar_view.cc#newcode232 ...
7 years ago (2013-12-04 21:24:57 UTC) #27
Greg Billock
On 2013/12/04 21:24:57, Greg Billock wrote: > On 2013/12/04 21:23:51, Peter Kasting wrote: > > ...
7 years ago (2013-12-04 22:25:55 UTC) #28
Peter Kasting
https://codereview.chromium.org/75873002/diff/380001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/75873002/diff/380001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode52 chrome/browser/ui/views/toolbar/site_chip_view.cc:52: set_focusable(false); I'm still not convinced this should be needed ...
7 years ago (2013-12-04 22:30:50 UTC) #29
Greg Billock
https://codereview.chromium.org/75873002/diff/380001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/75873002/diff/380001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode52 chrome/browser/ui/views/toolbar/site_chip_view.cc:52: set_focusable(false); On 2013/12/04 22:30:51, Peter Kasting wrote: > I'm ...
7 years ago (2013-12-05 00:00:46 UTC) #30
Peter Kasting
https://codereview.chromium.org/75873002/diff/380001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/75873002/diff/380001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode82 chrome/browser/ui/views/toolbar/site_chip_view.cc:82: return gfx::Size(); On 2013/12/05 00:00:46, Greg Billock wrote: > ...
7 years ago (2013-12-05 00:03:48 UTC) #31
Greg Billock
https://codereview.chromium.org/75873002/diff/380001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/75873002/diff/380001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode82 chrome/browser/ui/views/toolbar/site_chip_view.cc:82: return gfx::Size(); On 2013/12/05 00:03:48, Peter Kasting wrote: > ...
7 years ago (2013-12-05 00:33:59 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/75873002/420001
7 years ago (2013-12-05 00:37:13 UTC) #33
Peter Kasting
LGTM https://codereview.chromium.org/75873002/diff/420001/chrome/browser/ui/views/toolbar/toolbar_view.cc File chrome/browser/ui/views/toolbar/toolbar_view.cc (right): https://codereview.chromium.org/75873002/diff/420001/chrome/browser/ui/views/toolbar/toolbar_view.cc#newcode595 chrome/browser/ui/views/toolbar/toolbar_view.cc:595: if (site_chip_view_->ShouldShow()) { Nit: Can now change this ...
7 years ago (2013-12-05 01:07:23 UTC) #34
commit-bot: I haz the power
7 years ago (2013-12-05 04:27:57 UTC) #35
Message was sent while issue was closed.
Change committed as 238890

Powered by Google App Engine
This is Rietveld 408576698