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

Issue 1869163003: Refactored GlassBrowserFrameView and BrowserDesktopTreeHostWin. (Closed)

Created:
4 years, 8 months ago by Bret
Modified:
4 years, 8 months ago
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

Refactored GlassBrowserFrameView and BrowserDesktopTreeHostWin. Renamed many methods and constants. Updated their associated comments to be consistent with how they're actually used and to hopefully be less confusing to future readers. Also did some minor code cleanup. No visible differences are intended as a result of this change. Committed: https://crrev.com/05e4802e0ac10a178c9718ad21091d6e8a6c4a74 Cr-Commit-Position: refs/heads/master@{#388542}

Patch Set 1 #

Total comments: 17

Patch Set 2 : addressed ananta's comments #

Total comments: 54

Patch Set 3 : addressed peter's comments #

Patch Set 4 : edited a comment #

Total comments: 8

Patch Set 5 : minor edits #

Patch Set 6 : opaque edits #

Total comments: 10

Patch Set 7 : revision #

Total comments: 4

Patch Set 8 : final edits #

Patch Set 9 : fix merge error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -201 lines) Patch
M chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc View 1 2 3 4 5 6 7 8 4 chunks +54 lines, -44 lines 0 comments Download
D chrome/browser/ui/views/frame/browser_frame_common_win.h View 1 chunk +0 lines, -21 lines 0 comments Download
D chrome/browser/ui/views/frame/browser_frame_common_win.cc View 1 chunk +0 lines, -25 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.h View 1 2 3 4 5 6 7 3 chunks +30 lines, -18 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 2 3 4 5 6 7 8 15 chunks +95 lines, -76 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc View 1 2 3 4 5 6 chunks +7 lines, -8 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
Bret
4 years, 8 months ago (2016-04-08 17:45:13 UTC) #4
ananta
Looks good overall https://codereview.chromium.org/1869163003/diff/1/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc File chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/1869163003/diff/1/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc#newcode30 chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc:30: const int kDWMFrameBorderExtension = 3; Please ...
4 years, 8 months ago (2016-04-11 21:12:12 UTC) #5
Peter Kasting
https://codereview.chromium.org/1869163003/diff/1/chrome/browser/ui/views/frame/glass_browser_frame_view.cc File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): https://codereview.chromium.org/1869163003/diff/1/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode534 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:534: const bool md = ui::MaterialDesignController::IsModeMaterial(); On 2016/04/11 21:12:11, ananta ...
4 years, 8 months ago (2016-04-11 21:22:11 UTC) #6
Bret
https://codereview.chromium.org/1869163003/diff/1/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc File chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/1869163003/diff/1/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc#newcode30 chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc:30: const int kDWMFrameBorderExtension = 3; On 2016/04/11 21:12:11, ananta ...
4 years, 8 months ago (2016-04-11 23:44:47 UTC) #7
Peter Kasting
https://codereview.chromium.org/1869163003/diff/20001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc File chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/1869163003/diff/20001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc#newcode29 chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc:29: // draw, in DIPs. Only used in Windows versions ...
4 years, 8 months ago (2016-04-12 01:49:32 UTC) #8
Bret
https://codereview.chromium.org/1869163003/diff/20001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc File chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/1869163003/diff/20001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc#newcode29 chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc:29: // draw, in DIPs. Only used in Windows versions ...
4 years, 8 months ago (2016-04-12 23:19:38 UTC) #9
Peter Kasting
https://codereview.chromium.org/1869163003/diff/20001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc File chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/1869163003/diff/20001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc#newcode289 chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc:289: // blackness doesn't show up on our rounded toolbar ...
4 years, 8 months ago (2016-04-13 01:00:22 UTC) #10
Bret
https://codereview.chromium.org/1869163003/diff/20001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc File chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/1869163003/diff/20001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc#newcode289 chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc:289: // blackness doesn't show up on our rounded toolbar ...
4 years, 8 months ago (2016-04-13 22:19:47 UTC) #11
Peter Kasting
https://codereview.chromium.org/1869163003/diff/20001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): https://codereview.chromium.org/1869163003/diff/20001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode49 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:49: const int kClientBorderThicknessWin10 = 1; On 2016/04/13 22:19:47, Bret ...
4 years, 8 months ago (2016-04-15 00:20:52 UTC) #12
Bret
https://codereview.chromium.org/1869163003/diff/20001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): https://codereview.chromium.org/1869163003/diff/20001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode49 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:49: const int kClientBorderThicknessWin10 = 1; On 2016/04/15 00:20:51, Peter ...
4 years, 8 months ago (2016-04-15 23:07:08 UTC) #13
Peter Kasting
LGTM https://codereview.chromium.org/1869163003/diff/20001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): https://codereview.chromium.org/1869163003/diff/20001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode49 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:49: const int kClientBorderThicknessWin10 = 1; On 2016/04/15 23:07:08, ...
4 years, 8 months ago (2016-04-19 21:00:00 UTC) #14
Bret
https://codereview.chromium.org/1869163003/diff/120001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): https://codereview.chromium.org/1869163003/diff/120001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode541 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:541: button_y -= 1; On 2016/04/19 21:00:00, Peter Kasting wrote: ...
4 years, 8 months ago (2016-04-19 23:19:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869163003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869163003/140001
4 years, 8 months ago (2016-04-19 23:21:22 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/162234) ios_rel_device_gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-19 23:24:07 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869163003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869163003/160001
4 years, 8 months ago (2016-04-20 17:46:27 UTC) #23
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-04-20 18:58:11 UTC) #25
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:25:10 UTC) #27
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/05e4802e0ac10a178c9718ad21091d6e8a6c4a74
Cr-Commit-Position: refs/heads/master@{#388542}

Powered by Google App Engine
This is Rietveld 408576698