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

Issue 1624773002: Clean up frame code a bit: (Closed)

Created:
4 years, 11 months ago by Peter Kasting
Modified:
4 years, 11 months ago
Reviewers:
sky
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

Clean up frame code a bit: * Make more functions const * Tweak version check to "< Win 10" to match code constant names and the pattern of how we check this elsewhere in the UI code * Rename some things from "avatar" to "incognito icon" * Remove unnecessary member * Replace local constants with layout constants (only in cases where the layout constants have the same values in non-MD) * Simplify. In a few cases this may look like a behavior change but isn't; e.g. "NonClientTopBorderHeight(false) + kTabstripTopShadowThickness" was replaced by "FrameBorderThickness(false)" at a place where the two are guaranteed to be the same value * Prepare for further tabstrip/incognito icon positioning fixes to OpaqueBrowserFrameViewLayout::LayoutIncognitoIcon() BUG=none TEST=none Committed: https://crrev.com/11bb4163516d0d4580875a3eab247eb872b7256f Cr-Commit-Position: refs/heads/master@{#371432}

Patch Set 1 #

Patch Set 2 : Resync #

Patch Set 3 : Resync, fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -90 lines) Patch
M chrome/browser/ui/views/frame/glass_browser_frame_view.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h View 3 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc View 1 2 6 chunks +31 lines, -64 lines 0 comments Download
M ui/views/window/frame_background.h View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/views/window/frame_background.cc View 3 chunks +6 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 10 (5 generated)
Peter Kasting
4 years, 11 months ago (2016-01-23 02:14:22 UTC) #3
sky
LGTM
4 years, 11 months ago (2016-01-25 16:08:54 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1624773002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1624773002/40001
4 years, 11 months ago (2016-01-26 01:50:20 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-26 02:51:18 UTC) #8
commit-bot: I haz the power
4 years, 11 months ago (2016-01-26 02:52:39 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/11bb4163516d0d4580875a3eab247eb872b7256f
Cr-Commit-Position: refs/heads/master@{#371432}

Powered by Google App Engine
This is Rietveld 408576698