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

Issue 16025004: Several cleanup items, and one visible change: (Closed)

Created:
7 years, 7 months ago by Peter Kasting
Modified:
7 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Several cleanup items, and one visible change: * Eliminte the distinction between "item to item padding" and "item to edge padding" because the two values are always equal. * Don't bother supporting "height 0 = use preferred height" in location_bar_layout.*, since only one caller uses it at this point and it's easier to understand the code by just making it explicit. * Switch to using a views::Painter for the popup mode background as well, instead of explicitly drawing the images. This will make it easy to switch both modes to ninebox painting in the future. * Try to reorder code in order to declare variables as close to their use as possible, and in the order that they're accessed. * Visible change: Instead of assuming the edit always has 1 px. of "internal space", calculate the correct conditions for which that's true. This results in the OmniboxViewViews text moving right by 1 px. in the LTR case. BUG=231005, 239902 TEST=With "views textfield" on, address bar text moves 1 px. right R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202916

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -135 lines) Patch
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc View 1 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_layout.h View 1 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_layout.cc View 1 7 chunks +10 lines, -22 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 10 chunks +68 lines, -94 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_views.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_views.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Peter Kasting
7 years, 7 months ago (2013-05-24 23:38:05 UTC) #1
sky
LGTM
7 years, 7 months ago (2013-05-27 15:30:21 UTC) #2
Peter Kasting
7 years, 6 months ago (2013-05-29 18:22:44 UTC) #3
Message was sent while issue was closed.
Committed patchset #2 manually as r202916 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698