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

Issue 212053: Fake main window resizing in the test shell.... (Closed)

Created:
11 years, 3 months ago by Nate Chapin
Modified:
9 years, 5 months ago
Reviewers:
dglazkov
CC:
chromium-reviews_googlegroups.com, John Grabowski, darin (slow to review), pam+watch_chromium.org
Visibility:
Public.

Description

Fake main window resizing in the test shell. BUG=22707 TEST=window-resize layout tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=27006

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -15 lines) Patch
M webkit/tools/layout_tests/test_expectations.txt View 2 chunks +0 lines, -7 lines 0 comments Download
M webkit/tools/test_shell/mac/test_webview_delegate.mm View 1 chunk +4 lines, -3 lines 1 comment Download
M webkit/tools/test_shell/test_webview_delegate.h View 1 2 3 chunks +14 lines, -1 line 2 comments Download
M webkit/tools/test_shell/test_webview_delegate.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_webview_delegate_gtk.cc View 2 chunks +4 lines, -2 lines 1 comment Download
M webkit/tools/test_shell/test_webview_delegate_win.cc View 1 2 chunks +4 lines, -2 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
Nate Chapin
11 years, 3 months ago (2009-09-22 23:44:41 UTC) #1
dglazkov
11 years, 3 months ago (2009-09-23 18:17:14 UTC) #2
LGTM with comments:

http://codereview.chromium.org/212053/diff/1005/1008
File webkit/tools/test_shell/mac/test_webview_delegate.mm (right):

http://codereview.chromium.org/212053/diff/1005/1008#newcode125
Line 125: } else if (WebWidgetHost* host = GetWidgetHost()) {
Early return, no need to use else if, right?

http://codereview.chromium.org/212053/diff/1005/1011
File webkit/tools/test_shell/test_webview_delegate.h (right):

http://codereview.chromium.org/212053/diff/1005/1011#newcode313
Line 313: // the main window, the passed inWebRect is saved as fake_rect_ and we
return
... passed in WebRect ...

http://codereview.chromium.org/212053/diff/1005/1011#newcode317
Line 317: void setFakeWindowRect(const WebKit::WebRect&);
these could be just straight accessor-style
fake_window_rect()/set_fake_window_rect() methods.

http://codereview.chromium.org/212053/diff/1005/1007
File webkit/tools/test_shell/test_webview_delegate_gtk.cc (right):

http://codereview.chromium.org/212053/diff/1005/1007#newcode173
Line 173: } else if (WebWidgetHost* host = GetWidgetHost()) {
Ditto on early return.

http://codereview.chromium.org/212053/diff/1005/1010
File webkit/tools/test_shell/test_webview_delegate_win.cc (right):

http://codereview.chromium.org/212053/diff/1005/1010#newcode99
Line 99: } else if (WebWidgetHost* host = GetWidgetHost()) {
Ditto on early return.

Powered by Google App Engine
This is Rietveld 408576698