| OLD | NEW |
| 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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "webkit/tools/test_shell/webview_host.h" | 7 #include "webkit/tools/test_shell/webview_host.h" |
| 8 #include "webkit/tools/test_shell/mac/test_shell_webview.h" | 8 #include "webkit/tools/test_shell/mac/test_shell_webview.h" |
| 9 | 9 |
| 10 #include "gfx/rect.h" | |
| 11 #include "gfx/size.h" | |
| 12 #include "skia/ext/platform_canvas.h" | 10 #include "skia/ext/platform_canvas.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 13 #include "ui/gfx/rect.h" |
| 14 #include "ui/gfx/size.h" |
| 15 #include "webkit/glue/webpreferences.h" | 15 #include "webkit/glue/webpreferences.h" |
| 16 #include "webkit/tools/test_shell/test_shell.h" | 16 #include "webkit/tools/test_shell/test_shell.h" |
| 17 #include "webkit/tools/test_shell/test_webview_delegate.h" | 17 #include "webkit/tools/test_shell/test_webview_delegate.h" |
| 18 | 18 |
| 19 using WebKit::WebDevToolsAgentClient; | 19 using WebKit::WebDevToolsAgentClient; |
| 20 using WebKit::WebSize; | 20 using WebKit::WebSize; |
| 21 using WebKit::WebView; | 21 using WebKit::WebView; |
| 22 | 22 |
| 23 // static | 23 // static |
| 24 WebViewHost* WebViewHost::Create(NSView* parent_view, | 24 WebViewHost* WebViewHost::Create(NSView* parent_view, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 51 WebView* WebViewHost::webview() const { | 51 WebView* WebViewHost::webview() const { |
| 52 return static_cast<WebView*>(webwidget_); | 52 return static_cast<WebView*>(webwidget_); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void WebViewHost::SetIsActive(bool active) { | 55 void WebViewHost::SetIsActive(bool active) { |
| 56 // Ignore calls in layout test mode so that tests don't mess with each other | 56 // Ignore calls in layout test mode so that tests don't mess with each other |
| 57 // when running in parallel. | 57 // when running in parallel. |
| 58 if (!TestShell::layout_test_mode()) | 58 if (!TestShell::layout_test_mode()) |
| 59 webview()->setIsActive(active); | 59 webview()->setIsActive(active); |
| 60 } | 60 } |
| OLD | NEW |