| OLD | NEW |
| 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 Loading... |
| 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); | 42 host->webwidget_ = WebView::Create(delegate); |
| 43 prefs.Apply(host->webview()); | 43 prefs.Apply(host->webview()); |
| 44 host->webview()->InitializeMainFrame(delegate); | 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 } |
| OLD | NEW |