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

Side by Side Diff: webkit/tools/test_shell/webview_host_win.cc

Issue 200054: Hook up WebFrameClient, replacing many WebViewDelegate methods.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
« no previous file with comments | « webkit/tools/test_shell/webview_host_gtk.cc ('k') | webkit/webkit.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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 #include "webkit/tools/test_shell/webview_host.h" 5 #include "webkit/tools/test_shell/webview_host.h"
6 6
7 #include "base/gfx/rect.h" 7 #include "base/gfx/rect.h"
8 #include "base/gfx/size.h" 8 #include "base/gfx/size.h"
9 #include "base/win_util.h" 9 #include "base/win_util.h"
10 #include "skia/ext/platform_canvas.h" 10 #include "skia/ext/platform_canvas.h"
(...skipping 23 matching lines...) Expand all
34 } 34 }
35 35
36 host->view_ = CreateWindow(kWindowClassName, NULL, 36 host->view_ = CreateWindow(kWindowClassName, NULL,
37 WS_CHILD|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, 0, 0, 37 WS_CHILD|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, 0, 0,
38 0, 0, parent_view, NULL, 38 0, 0, parent_view, NULL,
39 GetModuleHandle(NULL), NULL); 39 GetModuleHandle(NULL), NULL);
40 win_util::SetWindowUserData(host->view_, host); 40 win_util::SetWindowUserData(host->view_, host);
41 41
42 host->webwidget_ = WebView::Create(delegate, delegate); 42 host->webwidget_ = WebView::Create(delegate, delegate);
43 prefs.Apply(host->webview()); 43 prefs.Apply(host->webview());
44 host->webview()->InitializeMainFrame(); 44 host->webview()->InitializeMainFrame(delegate);
45 45
46 return host; 46 return host;
47 } 47 }
48 48
49 WebView* WebViewHost::webview() const { 49 WebView* WebViewHost::webview() const {
50 return static_cast<WebView*>(webwidget_); 50 return static_cast<WebView*>(webwidget_);
51 } 51 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/webview_host_gtk.cc ('k') | webkit/webkit.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698