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

Issue 7358005: Makes sure widget is created at right size before showing (Closed)

Created:
9 years, 5 months ago by sky
Modified:
9 years, 5 months ago
Reviewers:
oshima
CC:
chromium-reviews, dhollowa, Ben Goodger (Google)
Visibility:
Public.

Description

Makes sure widget is created at right size before showing it. Previously if we were going to maximize the window we would first create it at the restored size, then maximize it. On slower machines this could result in a noticeable relayout of the web page. BUG=11229 TEST=see bug. R=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=93067

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rename methods #

Patch Set 3 : new method #

Patch Set 4 : Improve comment #

Patch Set 5 : Set in InitParams rather than method. #

Patch Set 6 : Fix comment #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -42 lines) Patch
M chrome/browser/chromeos/frame/browser_view.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M views/widget/native_widget_gtk.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M views/widget/native_widget_gtk.cc View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M views/widget/native_widget_private.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M views/widget/native_widget_views.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M views/widget/native_widget_views.cc View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M views/widget/native_widget_win.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M views/widget/native_widget_win.cc View 1 2 2 chunks +12 lines, -1 line 0 comments Download
M views/widget/widget.h View 1 2 3 4 5 3 chunks +10 lines, -0 lines 0 comments Download
M views/widget/widget.cc View 1 2 3 4 5 chunks +41 lines, -34 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
sky
9 years, 5 months ago (2011-07-13 23:45:14 UTC) #1
Ben Goodger (Google)
LGTM with one naming nit: http://codereview.chromium.org/7358005/diff/1/views/widget/native_widget_win.cc File views/widget/native_widget_win.cc (right): http://codereview.chromium.org/7358005/diff/1/views/widget/native_widget_win.cc#newcode893 views/widget/native_widget_win.cc:893: void NativeWidgetWin::ShowNativeWidget(ShowState state) { ...
9 years, 5 months ago (2011-07-13 23:53:40 UTC) #2
sky
Oshima, could you review this? Ben gave it an LGTM for the first round, but ...
9 years, 5 months ago (2011-07-18 21:30:55 UTC) #3
oshima
ok, will do after chromeos ui mtg (3-4) On Mon, Jul 18, 2011 at 2:30 ...
9 years, 5 months ago (2011-07-18 21:46:04 UTC) #4
sky
Updated to set bounds in InitParams rather than a new method. -Scott
9 years, 5 months ago (2011-07-19 16:08:09 UTC) #5
oshima
9 years, 5 months ago (2011-07-19 16:23:44 UTC) #6
LGTM

http://codereview.chromium.org/7358005/diff/11001/views/widget/widget.cc
File views/widget/widget.cc (right):

http://codereview.chromium.org/7358005/diff/11001/views/widget/widget.cc#newc...
views/widget/widget.cc:1035: widget_delegate_->GetSavedMaximizedState(maximize);
no need to change in this CL, but looks like all three parameters (maximized
state, bounds and hould_restore_window_size) can be in one struct like
SavedWindowState?

Powered by Google App Engine
This is Rietveld 408576698