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

Issue 2151903002: Exclude caption button bounds from non-client frame hit testing (Closed)

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

Description

This ensures that the non-client frame hit testing doesn't extend down into the caption button (minimize, maximize, close) area, thus giving the user the impression that the frame is resizable at that point. BUG=548619 Committed: https://crrev.com/5db27ec315b8568a001a10148fb751867211e48e Cr-Commit-Position: refs/heads/master@{#406651}

Patch Set 1 #

Patch Set 2 : Slightly better code. Don't scale the small inset #

Total comments: 16

Patch Set 3 : Comment cleanup and minor code changes #

Patch Set 4 : moved dwmapi.h above utility and use system search path #

Total comments: 8

Patch Set 5 : Better comments explaining the code, its purpose and its limitations #

Total comments: 1

Patch Set 6 : Even more clarity for the comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -0 lines) Patch
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 2 3 4 5 4 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (14 generated)
kylix_rd
Both sky@ and pkasting@ are OOO, so this CL will sit for a while.
4 years, 5 months ago (2016-07-14 16:02:12 UTC) #3
Peter Kasting
https://codereview.chromium.org/2151903002/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/2151903002/diff/20001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode24 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:24: #include "dwmapi.h" This should be in <> and moved ...
4 years, 5 months ago (2016-07-18 19:12:16 UTC) #8
kylix_rd
https://codereview.chromium.org/2151903002/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/2151903002/diff/20001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode24 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:24: #include "dwmapi.h" On 2016/07/18 19:12:15, Peter Kasting (slow) wrote: ...
4 years, 5 months ago (2016-07-18 20:35:10 UTC) #9
Peter Kasting
https://codereview.chromium.org/2151903002/diff/60001/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/2151903002/diff/60001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode254 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:254: // corner of the window. This code will ensure ...
4 years, 5 months ago (2016-07-19 02:48:34 UTC) #14
kylix_rd
https://codereview.chromium.org/2151903002/diff/60001/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/2151903002/diff/60001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode254 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:254: // corner of the window. This code will ensure ...
4 years, 5 months ago (2016-07-19 14:11:15 UTC) #15
Peter Kasting
https://codereview.chromium.org/2151903002/diff/60001/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/2151903002/diff/60001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode254 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:254: // corner of the window. This code will ensure ...
4 years, 5 months ago (2016-07-19 22:44:52 UTC) #16
kylix_rd
https://codereview.chromium.org/2151903002/diff/60001/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/2151903002/diff/60001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode254 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:254: // corner of the window. This code will ensure ...
4 years, 5 months ago (2016-07-20 16:04:26 UTC) #17
Peter Kasting
LGTM https://codereview.chromium.org/2151903002/diff/80001/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/2151903002/diff/80001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode272 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:272: // best we can do. Nit: This still ...
4 years, 5 months ago (2016-07-20 18:47:44 UTC) #18
kylix_rd
I took most of your comment as is. I did break up the slightly run-on ...
4 years, 5 months ago (2016-07-20 19:28:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2151903002/100001
4 years, 5 months ago (2016-07-20 19:29:06 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-20 20:18:50 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 20:22:16 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5db27ec315b8568a001a10148fb751867211e48e
Cr-Commit-Position: refs/heads/master@{#406651}

Powered by Google App Engine
This is Rietveld 408576698