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

Issue 10596005: On Windows 8 when a metro application is snapped running desktop application windows are resized as (Closed)

Created:
8 years, 6 months ago by ananta
Modified:
8 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews
Visibility:
Public.

Description

On Windows 8 when a metro application is snapped running desktop application windows are resized as the workarea is reduced. Desktop chrome fails to paint the tabstrip when we receive this resize notification. Reason: The WM_GETTITLEBARINFOEX message we send to calculate the minimize button offset in the caption, fails if we are not active. Fix is to calculate and cache the delta of the minimize button which is applied to the left/right edge of the client rect if we fail to get the minimize button offset. BUG=116745 R=sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=143447

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 10

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Total comments: 3

Patch Set 8 : #

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

Messages

Total messages: 7 (0 generated)
ananta
8 years, 6 months ago (2012-06-21 00:16:41 UTC) #1
sky
https://chromiumcodereview.appspot.com/10596005/diff/5/chrome/browser/ui/views/frame/browser_frame_win.cc File chrome/browser/ui/views/frame/browser_frame_win.cc (right): https://chromiumcodereview.appspot.com/10596005/diff/5/chrome/browser/ui/views/frame/browser_frame_win.cc#newcode257 chrome/browser/ui/views/frame/browser_frame_win.cc:257: if (action != WA_INACTIVE) Can you move this before ...
8 years, 6 months ago (2012-06-21 16:38:40 UTC) #2
ananta
https://chromiumcodereview.appspot.com/10596005/diff/5/chrome/browser/ui/views/frame/browser_frame_win.cc File chrome/browser/ui/views/frame/browser_frame_win.cc (right): https://chromiumcodereview.appspot.com/10596005/diff/5/chrome/browser/ui/views/frame/browser_frame_win.cc#newcode257 chrome/browser/ui/views/frame/browser_frame_win.cc:257: if (action != WA_INACTIVE) On 2012/06/21 16:38:40, sky wrote: ...
8 years, 6 months ago (2012-06-21 17:39:40 UTC) #3
sky
https://chromiumcodereview.appspot.com/10596005/diff/15001/chrome/browser/ui/views/frame/browser_frame_win.cc File chrome/browser/ui/views/frame/browser_frame_win.cc (right): https://chromiumcodereview.appspot.com/10596005/diff/15001/chrome/browser/ui/views/frame/browser_frame_win.cc#newcode288 chrome/browser/ui/views/frame/browser_frame_win.cc:288: BOOL ret = SendMessage(GetNativeView(), WM_GETTITLEBARINFOEX, 0, Remove 'ret' since ...
8 years, 6 months ago (2012-06-21 18:13:40 UTC) #4
ananta
https://chromiumcodereview.appspot.com/10596005/diff/15001/chrome/browser/ui/views/frame/browser_frame_win.cc File chrome/browser/ui/views/frame/browser_frame_win.cc (right): https://chromiumcodereview.appspot.com/10596005/diff/15001/chrome/browser/ui/views/frame/browser_frame_win.cc#newcode288 chrome/browser/ui/views/frame/browser_frame_win.cc:288: BOOL ret = SendMessage(GetNativeView(), WM_GETTITLEBARINFOEX, 0, On 2012/06/21 18:13:40, ...
8 years, 6 months ago (2012-06-21 18:27:46 UTC) #5
sky
LGTM https://chromiumcodereview.appspot.com/10596005/diff/18002/chrome/browser/ui/views/frame/browser_frame_win.cc File chrome/browser/ui/views/frame/browser_frame_win.cc (right): https://chromiumcodereview.appspot.com/10596005/diff/18002/chrome/browser/ui/views/frame/browser_frame_win.cc#newcode89 chrome/browser/ui/views/frame/browser_frame_win.cc:89: int GetMinimizeButtonOffsetFromWindows(gfx::NativeView window) { static https://chromiumcodereview.appspot.com/10596005/diff/18002/chrome/browser/ui/views/frame/browser_frame_win.cc#newcode89 chrome/browser/ui/views/frame/browser_frame_win.cc:89: int ...
8 years, 6 months ago (2012-06-21 19:37:10 UTC) #6
ananta
8 years, 6 months ago (2012-06-21 20:27:27 UTC) #7
https://chromiumcodereview.appspot.com/10596005/diff/18002/chrome/browser/ui/...
File chrome/browser/ui/views/frame/browser_frame_win.cc (right):

https://chromiumcodereview.appspot.com/10596005/diff/18002/chrome/browser/ui/...
chrome/browser/ui/views/frame/browser_frame_win.cc:89: int
GetMinimizeButtonOffsetFromWindows(gfx::NativeView window) {
On 2012/06/21 19:37:10, sky wrote:
> GetMinimizeButtonOffsetFromWindows - >GetMinimizeButtonOffsetForWindow

Done.

Powered by Google App Engine
This is Rietveld 408576698