OLD | NEW |
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 #include "webkit/support/test_webkit_platform_support.h" | 5 #include "webkit/support/test_webkit_platform_support.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/metrics/stats_counters.h" | 9 #include "base/metrics/stats_counters.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 #include "webkit/tools/test_shell/simple_socket_stream_bridge.h" | 54 #include "webkit/tools/test_shell/simple_socket_stream_bridge.h" |
55 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" | 55 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" |
56 #include "webkit/tools/test_shell/test_shell_request_context.h" | 56 #include "webkit/tools/test_shell/test_shell_request_context.h" |
57 #include "webkit/tools/test_shell/test_shell_webblobregistry_impl.h" | 57 #include "webkit/tools/test_shell/test_shell_webblobregistry_impl.h" |
58 | 58 |
59 #if defined(OS_WIN) | 59 #if defined(OS_WIN) |
60 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/win/WebTheme
Engine.h" | 60 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/win/WebTheme
Engine.h" |
61 #include "webkit/tools/test_shell/test_shell_webthemeengine.h" | 61 #include "webkit/tools/test_shell/test_shell_webthemeengine.h" |
62 #elif defined(OS_MACOSX) | 62 #elif defined(OS_MACOSX) |
63 #include "base/mac/mac_util.h" | 63 #include "base/mac/mac_util.h" |
64 #elif defined(OS_POSIX) && !defined(OS_ANDROID) | |
65 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/linux/WebThe
meEngine.h" | |
66 #endif | 64 #endif |
67 | 65 |
68 using WebKit::WebScriptController; | 66 using WebKit::WebScriptController; |
69 | 67 |
70 TestWebKitPlatformSupport::TestWebKitPlatformSupport(bool unit_test_mode, | 68 TestWebKitPlatformSupport::TestWebKitPlatformSupport(bool unit_test_mode, |
71 WebKit::Platform* shadow_platform_delegate) | 69 WebKit::Platform* shadow_platform_delegate) |
72 : unit_test_mode_(unit_test_mode), | 70 : unit_test_mode_(unit_test_mode), |
73 shadow_platform_delegate_(shadow_platform_delegate), | 71 shadow_platform_delegate_(shadow_platform_delegate), |
74 hyphen_dictionary_(NULL) { | 72 hyphen_dictionary_(NULL) { |
75 v8::V8::SetCounterFunction(base::StatsTable::FindLocation); | 73 v8::V8::SetCounterFunction(base::StatsTable::FindLocation); |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 return 0; | 594 return 0; |
597 } | 595 } |
598 | 596 |
599 WebKit::WebGestureCurve* TestWebKitPlatformSupport::createFlingAnimationCurve( | 597 WebKit::WebGestureCurve* TestWebKitPlatformSupport::createFlingAnimationCurve( |
600 int device_source, | 598 int device_source, |
601 const WebKit::WebFloatPoint& velocity, | 599 const WebKit::WebFloatPoint& velocity, |
602 const WebKit::WebSize& cumulative_scroll) { | 600 const WebKit::WebSize& cumulative_scroll) { |
603 // Caller will retain and release. | 601 // Caller will retain and release. |
604 return new WebGestureCurveMock(velocity, cumulative_scroll); | 602 return new WebGestureCurveMock(velocity, cumulative_scroll); |
605 } | 603 } |
OLD | NEW |