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

Issue 1834933002: Misc. cleanup (Closed)

Created:
4 years, 9 months ago by Peter Kasting
Modified:
4 years, 8 months ago
Reviewers:
varkha
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Misc. cleanup: All: * Add/update/clarify comments. ContentSettingImageView: * This doesn't directly subclass views::View. Move those overrides into the IconLabelBubbleView list and reorder the code to match. * Nuke IsBubbleShowing() and just inline its trivial code into its lone caller. IconLabelBubbleView: * Rename GetBubbleOutPadding() to GetOuterPadding(), the class already has "bubble" in the name. * Factor code into some helpers in preparation for adding more uses/complexity in the future. * Functional change: Make the leading padding match the trailing padding for MD in all cases, not just when there's no image. This looks better to me, is simpler, and will be necessary for an upcoming change. * Add missing const to unittest code. layout_constants.*: * Rename "padding" to "spacing" in a place where we're referring to the distance between objects instead of at the edge of an object. BUG=586423 TEST=none Committed: https://crrev.com/031b547b8763c3026b53dea120ccf3d4fa176492 Cr-Commit-Position: refs/heads/master@{#383917}

Patch Set 1 #

Patch Set 2 : Missing bits #

Patch Set 3 : Fix compile #

Patch Set 4 : Move more code around #

Total comments: 4

Patch Set 5 : Fix missing spacing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -124 lines) Patch
M chrome/browser/ui/layout_constants.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/layout_constants.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.h View 1 2 3 4 2 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.cc View 1 2 3 5 chunks +62 lines, -68 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.h View 1 2 3 1 chunk +10 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc View 1 2 3 4 6 chunks +27 lines, -30 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (7 generated)
Peter Kasting
4 years, 9 months ago (2016-03-25 10:27:37 UTC) #4
varkha
Not sure if I am missing something or you left the spacing on purpose. https://codereview.chromium.org/1834933002/diff/60001/chrome/browser/ui/views/location_bar/content_setting_image_view.h ...
4 years, 8 months ago (2016-03-30 03:03:42 UTC) #6
Peter Kasting
https://codereview.chromium.org/1834933002/diff/60001/chrome/browser/ui/views/location_bar/content_setting_image_view.h File chrome/browser/ui/views/location_bar/content_setting_image_view.h (right): https://codereview.chromium.org/1834933002/diff/60001/chrome/browser/ui/views/location_bar/content_setting_image_view.h#newcode86 chrome/browser/ui/views/location_bar/content_setting_image_view.h:86: // Called when the user clicks the view; this ...
4 years, 8 months ago (2016-03-30 03:56:54 UTC) #7
varkha
lgtm.
4 years, 8 months ago (2016-03-30 05:09:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1834933002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1834933002/80001
4 years, 8 months ago (2016-03-30 05:16:41 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-03-30 06:06:16 UTC) #12
commit-bot: I haz the power
4 years, 8 months ago (2016-03-30 06:07:48 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/031b547b8763c3026b53dea120ccf3d4fa176492
Cr-Commit-Position: refs/heads/master@{#383917}

Powered by Google App Engine
This is Rietveld 408576698