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

Side by Side Diff: webkit/tools/test_shell/mac/test_shell_webview.mm

Issue 293001: Delete glue/webview{_delegate}.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "test_shell_webview.h" 5 #import "test_shell_webview.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/gfx/rect.h" 9 #include "base/gfx/rect.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "webkit/api/public/WebFrame.h" 12 #include "webkit/api/public/WebFrame.h"
13 #include "webkit/glue/webview.h" 13 #include "webkit/api/public/WebView.h"
14 #include "webkit/tools/test_shell/test_shell.h" 14 #include "webkit/tools/test_shell/test_shell.h"
15 #include "webkit/tools/test_shell/webwidget_host.h" 15 #include "webkit/tools/test_shell/webwidget_host.h"
16 16
17 @implementation TestShellWebView 17 @implementation TestShellWebView
18 18
19 @synthesize shell = shell_; 19 @synthesize shell = shell_;
20 20
21 - (id)initWithFrame:(NSRect)frame { 21 - (id)initWithFrame:(NSRect)frame {
22 self = [super initWithFrame:frame]; 22 self = [super initWithFrame:frame];
23 if (self) { 23 if (self) {
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 197 }
198 198
199 - (void)setFrame:(NSRect)frameRect { 199 - (void)setFrame:(NSRect)frameRect {
200 [super setFrame:frameRect]; 200 [super setFrame:frameRect];
201 if (shell_ && shell_->webView()) 201 if (shell_ && shell_->webView())
202 shell_->webViewHost()->Resize(gfx::Rect(NSRectToCGRect(frameRect))); 202 shell_->webViewHost()->Resize(gfx::Rect(NSRectToCGRect(frameRect)));
203 [self setNeedsDisplay:YES]; 203 [self setNeedsDisplay:YES];
204 } 204 }
205 205
206 @end 206 @end
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/layout_test_controller.cc ('k') | webkit/tools/test_shell/mac/test_webview_delegate.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698