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

Side by Side Diff: webkit/tools/test_shell/test_shell.cc

Issue 10869073: Split user agent code out of the 'glue' target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to trunk Created 8 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « webkit/support/webkit_support_glue.cc ('k') | webkit/tools/test_shell/test_shell.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #undef LOG 5 #undef LOG
6 6
7 #include "webkit/tools/test_shell/test_shell.h" 7 #include "webkit/tools/test_shell/test_shell.h"
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 26 matching lines...) Expand all
37 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" 37 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h"
38 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h" 38 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h"
39 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 39 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
40 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" 40 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
41 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques t.h" 41 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques t.h"
42 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLRespon se.h" 42 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLRespon se.h"
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
44 #include "ui/gfx/codec/png_codec.h" 44 #include "ui/gfx/codec/png_codec.h"
45 #include "ui/gfx/size.h" 45 #include "ui/gfx/size.h"
46 #include "webkit/glue/glue_serialize.h" 46 #include "webkit/glue/glue_serialize.h"
47 #include "webkit/glue/user_agent.h"
48 #include "webkit/glue/webkit_glue.h" 47 #include "webkit/glue/webkit_glue.h"
49 #include "webkit/glue/webpreferences.h" 48 #include "webkit/glue/webpreferences.h"
50 #include "webkit/tools/test_shell/notification_presenter.h" 49 #include "webkit/tools/test_shell/notification_presenter.h"
51 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" 50 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h"
52 #include "webkit/tools/test_shell/test_navigation_controller.h" 51 #include "webkit/tools/test_shell/test_navigation_controller.h"
53 #include "webkit/tools/test_shell/test_shell_devtools_agent.h" 52 #include "webkit/tools/test_shell/test_shell_devtools_agent.h"
54 #include "webkit/tools/test_shell/test_shell_devtools_client.h" 53 #include "webkit/tools/test_shell/test_shell_devtools_client.h"
55 #include "webkit/tools/test_shell/test_shell_request_context.h" 54 #include "webkit/tools/test_shell/test_shell_request_context.h"
56 #include "webkit/tools/test_shell/test_shell_switches.h" 55 #include "webkit/tools/test_shell/test_shell_switches.h"
57 #include "webkit/tools/test_shell/test_webview_delegate.h" 56 #include "webkit/tools/test_shell/test_webview_delegate.h"
57 #include "webkit/user_agent/user_agent.h"
58 #include "webkit/user_agent/user_agent_util.h"
58 59
59 using WebKit::WebCanvas; 60 using WebKit::WebCanvas;
60 using WebKit::WebFrame; 61 using WebKit::WebFrame;
61 using WebKit::WebNavigationPolicy; 62 using WebKit::WebNavigationPolicy;
62 using WebKit::WebRect; 63 using WebKit::WebRect;
63 using WebKit::WebScriptController; 64 using WebKit::WebScriptController;
64 using WebKit::WebSize; 65 using WebKit::WebSize;
65 using WebKit::WebURLRequest; 66 using WebKit::WebURLRequest;
66 using WebKit::WebView; 67 using WebKit::WebView;
67 using webkit_glue::WebPreferences; 68 using webkit_glue::WebPreferences;
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 return device_orientation_client_mock_.get(); 617 return device_orientation_client_mock_.get();
617 } 618 }
618 619
619 WebKit::WebGeolocationClientMock* TestShell::geolocation_client_mock() { 620 WebKit::WebGeolocationClientMock* TestShell::geolocation_client_mock() {
620 if (!geolocation_client_mock_.get()) { 621 if (!geolocation_client_mock_.get()) {
621 geolocation_client_mock_.reset( 622 geolocation_client_mock_.reset(
622 WebKit::WebGeolocationClientMock::create()); 623 WebKit::WebGeolocationClientMock::create());
623 } 624 }
624 return geolocation_client_mock_.get(); 625 return geolocation_client_mock_.get();
625 } 626 }
OLDNEW
« no previous file with comments | « webkit/support/webkit_support_glue.cc ('k') | webkit/tools/test_shell/test_shell.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698