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 "skia/ext/platform_canvas.h" | 10 #include "skia/ext/platform_canvas.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h" |
12 #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" | 13 #include "ui/gfx/rect.h" |
14 #include "ui/gfx/size.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; |
(...skipping 30 matching lines...) Expand all Loading... |
52 WebView* WebViewHost::webview() const { | 52 WebView* WebViewHost::webview() const { |
53 return static_cast<WebView*>(webwidget_); | 53 return static_cast<WebView*>(webwidget_); |
54 } | 54 } |
55 | 55 |
56 void WebViewHost::SetIsActive(bool active) { | 56 void WebViewHost::SetIsActive(bool active) { |
57 // Ignore calls in layout test mode so that tests don't mess with each other | 57 // Ignore calls in layout test mode so that tests don't mess with each other |
58 // when running in parallel. | 58 // when running in parallel. |
59 if (!TestShell::layout_test_mode()) | 59 if (!TestShell::layout_test_mode()) |
60 webview()->setIsActive(active); | 60 webview()->setIsActive(active); |
61 } | 61 } |
OLD | NEW |