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

Side by Side Diff: webkit/tools/test_shell/mac/webview_host.mm

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month 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
OLDNEW
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 "base/gfx/rect.h" 10 #include "base/gfx/rect.h"
11 #include "base/gfx/size.h" 11 #include "base/gfx/size.h"
12 #include "skia/ext/platform_canvas.h" 12 #include "skia/ext/platform_canvas.h"
13 #include "webkit/api/public/WebSize.h" 13 #include "third_party/WebKit/WebKit/chromium/public/WebSize.h"
14 #include "webkit/api/public/WebView.h" 14 #include "third_party/WebKit/WebKit/chromium/public/WebView.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::WebSize; 19 using WebKit::WebSize;
20 using WebKit::WebView; 20 using WebKit::WebView;
21 21
22 // static 22 // static
23 WebViewHost* WebViewHost::Create(NSView* parent_view, 23 WebViewHost* WebViewHost::Create(NSView* parent_view,
24 TestWebViewDelegate* delegate, 24 TestWebViewDelegate* delegate,
(...skipping 24 matching lines...) Expand all
49 WebView* WebViewHost::webview() const { 49 WebView* WebViewHost::webview() const {
50 return static_cast<WebView*>(webwidget_); 50 return static_cast<WebView*>(webwidget_);
51 } 51 }
52 52
53 void WebViewHost::SetIsActive(bool active) { 53 void WebViewHost::SetIsActive(bool active) {
54 // Ignore calls in layout test mode so that tests don't mess with each other 54 // Ignore calls in layout test mode so that tests don't mess with each other
55 // when running in parallel. 55 // when running in parallel.
56 if (!TestShell::layout_test_mode()) 56 if (!TestShell::layout_test_mode())
57 webview()->setIsActive(active); 57 webview()->setIsActive(active);
58 } 58 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/mac/test_webview_delegate.mm ('k') | webkit/tools/test_shell/mac/webwidget_host.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698