| 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 #ifndef WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 5 #ifndef WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
| 6 #define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 6 #define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "third_party/WebKit/public/platform/WebUnitTestSupport.h" | 10 #include "third_party/WebKit/public/platform/WebUnitTestSupport.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 return file_system_root_.path(); | 60 return file_system_root_.path(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 virtual base::string16 GetLocalizedString(int message_id) OVERRIDE; | 63 virtual base::string16 GetLocalizedString(int message_id) OVERRIDE; |
| 64 virtual base::StringPiece GetDataResource( | 64 virtual base::StringPiece GetDataResource( |
| 65 int resource_id, | 65 int resource_id, |
| 66 ui::ScaleFactor scale_factor) OVERRIDE; | 66 ui::ScaleFactor scale_factor) OVERRIDE; |
| 67 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( | 67 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( |
| 68 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) | 68 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) |
| 69 OVERRIDE; | 69 OVERRIDE; |
| 70 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge( | 70 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketStreamBridge( |
| 71 WebKit::WebSocketStreamHandle* handle, | 71 WebKit::WebSocketStreamHandle* handle, |
| 72 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE; | 72 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE; |
| 73 | 73 |
| 74 virtual webkit_glue::WebSocketHandleBridge* CreateWebSocketBridge( |
| 75 webkit_glue::WebSocketHandleDelegate* delegate) OVERRIDE; |
| 76 |
| 74 virtual WebKit::WebGestureCurve* createFlingAnimationCurve( | 77 virtual WebKit::WebGestureCurve* createFlingAnimationCurve( |
| 75 int device_source, | 78 int device_source, |
| 76 const WebKit::WebFloatPoint& velocity, | 79 const WebKit::WebFloatPoint& velocity, |
| 77 const WebKit::WebSize& cumulative_scroll); | 80 const WebKit::WebSize& cumulative_scroll); |
| 78 | 81 |
| 79 virtual WebKit::WebUnitTestSupport* unitTestSupport(); | 82 virtual WebKit::WebUnitTestSupport* unitTestSupport(); |
| 80 | 83 |
| 81 // WebUnitTestSupport implementation | 84 // WebUnitTestSupport implementation |
| 82 virtual void registerMockedURL(const WebKit::WebURL& url, | 85 virtual void registerMockedURL(const WebKit::WebURL& url, |
| 83 const WebKit::WebURLResponse& response, | 86 const WebKit::WebURLResponse& response, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 102 WebURLLoaderMockFactory url_loader_factory_; | 105 WebURLLoaderMockFactory url_loader_factory_; |
| 103 webkit::WebCompositorSupportImpl compositor_support_; | 106 webkit::WebCompositorSupportImpl compositor_support_; |
| 104 | 107 |
| 105 #if defined(OS_WIN) || defined(OS_MACOSX) | 108 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 106 WebKit::WebThemeEngine* active_theme_engine_; | 109 WebKit::WebThemeEngine* active_theme_engine_; |
| 107 #endif | 110 #endif |
| 108 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); | 111 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); |
| 109 }; | 112 }; |
| 110 | 113 |
| 111 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 114 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
| OLD | NEW |