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

Issue 243173005: Add SM_CXSIZEFRAME and SM_CXPADDEDBORDER metrics to get window border size. (Closed)

Created:
6 years, 8 months ago by jbauman
Modified:
6 years, 8 months ago
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Add SM_CXSIZEFRAME and SM_CXPADDEDBORDER metrics to get window border size. Vista added the SM_CXPADDEDBORDER system metric which needs to be included in the border size. The previous code happened to work with 32-bit Chrome because Windows added the padding into SM_CXSIZEFRAME (and set the padding to 0) for backwards compatibility, but with 64-bit that changed. GetSystemMetrics(SM_CXPADDEDBORDER) should always return 0 on XP. BUG=361720 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265329

Patch Set 1 #

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

Messages

Total messages: 5 (0 generated)
jbauman
6 years, 8 months ago (2014-04-18 20:46:25 UTC) #1
Ben Goodger (Google)
lgtm
6 years, 8 months ago (2014-04-21 22:10:40 UTC) #2
jbauman
The CQ bit was checked by jbauman@chromium.org
6 years, 8 months ago (2014-04-22 17:54:44 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/243173005/1
6 years, 8 months ago (2014-04-22 17:55:02 UTC) #4
commit-bot: I haz the power
6 years, 8 months ago (2014-04-22 19:34:11 UTC) #5
Message was sent while issue was closed.
Change committed as 265329

Powered by Google App Engine
This is Rietveld 408576698