| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "skia/ext/platform_canvas.h" | |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 9 #include "ui/base/win/hwnd_util.h" | 8 #include "ui/base/win/hwnd_util.h" |
| 10 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" |
| 11 #include "ui/gfx/size.h" | 10 #include "ui/gfx/size.h" |
| 12 #include "webkit/glue/webpreferences.h" | 11 #include "webkit/glue/webpreferences.h" |
| 13 #include "webkit/tools/test_shell/test_webview_delegate.h" | 12 #include "webkit/tools/test_shell/test_webview_delegate.h" |
| 14 | 13 |
| 15 using namespace WebKit; | 14 using namespace WebKit; |
| 16 | 15 |
| 17 static const wchar_t kWindowClassName[] = L"WebViewHost"; | 16 static const wchar_t kWindowClassName[] = L"WebViewHost"; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 46 host->webview()->setDevToolsAgentClient(dev_tools_client); | 45 host->webview()->setDevToolsAgentClient(dev_tools_client); |
| 47 prefs.Apply(host->webview()); | 46 prefs.Apply(host->webview()); |
| 48 host->webview()->initializeMainFrame(delegate); | 47 host->webview()->initializeMainFrame(delegate); |
| 49 | 48 |
| 50 return host; | 49 return host; |
| 51 } | 50 } |
| 52 | 51 |
| 53 WebView* WebViewHost::webview() const { | 52 WebView* WebViewHost::webview() const { |
| 54 return static_cast<WebView*>(webwidget_); | 53 return static_cast<WebView*>(webwidget_); |
| 55 } | 54 } |
| OLD | NEW |