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 CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
6 #define CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "content/public/common/page_state.h" | 12 #include "content/public/common/page_state.h" |
13 #include "content/public/renderer/render_view_observer.h" | 13 #include "content/public/renderer/render_view_observer.h" |
14 #include "content/public/renderer/render_view_observer_tracker.h" | 14 #include "content/public/renderer/render_view_observer_tracker.h" |
15 #include "content/shell/common/shell_test_configuration.h" | 15 #include "content/shell/common/shell_test_configuration.h" |
16 #include "content/shell/common/test_runner/test_preferences.h" | 16 #include "content/shell/common/test_runner/test_preferences.h" |
17 #include "content/shell/renderer/test_runner/WebTestDelegate.h" | 17 #include "content/shell/renderer/test_runner/WebTestDelegate.h" |
18 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" | 18 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" |
19 #include "v8/include/v8.h" | 19 #include "v8/include/v8.h" |
20 | 20 |
21 class SkBitmap; | 21 class SkBitmap; |
22 class SkCanvas; | 22 class SkCanvas; |
23 | 23 |
24 namespace blink { | 24 namespace blink { |
| 25 class WebBatteryStatus; |
25 class WebDeviceMotionData; | 26 class WebDeviceMotionData; |
26 class WebDeviceOrientationData; | 27 class WebDeviceOrientationData; |
27 struct WebRect; | 28 struct WebRect; |
28 } | 29 } |
29 | 30 |
30 namespace content { | 31 namespace content { |
31 | 32 |
32 class LeakDetector; | 33 class LeakDetector; |
33 class WebTestProxyBase; | 34 class WebTestProxyBase; |
34 struct LeakDetectionResult; | 35 struct LeakDetectionResult; |
(...skipping 24 matching lines...) Expand all Loading... |
59 const blink::WebGamepad& gamepad) OVERRIDE; | 60 const blink::WebGamepad& gamepad) OVERRIDE; |
60 virtual void didDisconnectGamepad(int index, | 61 virtual void didDisconnectGamepad(int index, |
61 const blink::WebGamepad& gamepad) OVERRIDE; | 62 const blink::WebGamepad& gamepad) OVERRIDE; |
62 virtual void setDeviceMotionData( | 63 virtual void setDeviceMotionData( |
63 const blink::WebDeviceMotionData& data) OVERRIDE; | 64 const blink::WebDeviceMotionData& data) OVERRIDE; |
64 virtual void setDeviceOrientationData( | 65 virtual void setDeviceOrientationData( |
65 const blink::WebDeviceOrientationData& data) OVERRIDE; | 66 const blink::WebDeviceOrientationData& data) OVERRIDE; |
66 virtual void setScreenOrientation( | 67 virtual void setScreenOrientation( |
67 const blink::WebScreenOrientationType& orientation) OVERRIDE; | 68 const blink::WebScreenOrientationType& orientation) OVERRIDE; |
68 virtual void resetScreenOrientation() OVERRIDE; | 69 virtual void resetScreenOrientation() OVERRIDE; |
| 70 virtual void didChangeBatteryStatus( |
| 71 const blink::WebBatteryStatus& status) OVERRIDE; |
69 virtual void printMessage(const std::string& message) OVERRIDE; | 72 virtual void printMessage(const std::string& message) OVERRIDE; |
70 virtual void postTask(WebTask* task) OVERRIDE; | 73 virtual void postTask(WebTask* task) OVERRIDE; |
71 virtual void postDelayedTask(WebTask* task, long long ms) OVERRIDE; | 74 virtual void postDelayedTask(WebTask* task, long long ms) OVERRIDE; |
72 virtual blink::WebString registerIsolatedFileSystem( | 75 virtual blink::WebString registerIsolatedFileSystem( |
73 const blink::WebVector<blink::WebString>& absolute_filenames) OVERRIDE; | 76 const blink::WebVector<blink::WebString>& absolute_filenames) OVERRIDE; |
74 virtual long long getCurrentTimeInMillisecond() OVERRIDE; | 77 virtual long long getCurrentTimeInMillisecond() OVERRIDE; |
75 virtual blink::WebString getAbsoluteWebStringFromUTF8Path( | 78 virtual blink::WebString getAbsoluteWebStringFromUTF8Path( |
76 const std::string& utf8_path) OVERRIDE; | 79 const std::string& utf8_path) OVERRIDE; |
77 virtual blink::WebURL localFileToDataURL( | 80 virtual blink::WebURL localFileToDataURL( |
78 const blink::WebURL& file_url) OVERRIDE; | 81 const blink::WebURL& file_url) OVERRIDE; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 155 |
153 scoped_ptr<LeakDetector> leak_detector_; | 156 scoped_ptr<LeakDetector> leak_detector_; |
154 bool needs_leak_detector_; | 157 bool needs_leak_detector_; |
155 | 158 |
156 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); | 159 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); |
157 }; | 160 }; |
158 | 161 |
159 } // namespace content | 162 } // namespace content |
160 | 163 |
161 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 164 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
OLD | NEW |