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" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 namespace content { | 30 namespace content { |
31 | 31 |
32 class LeakDetector; | 32 class LeakDetector; |
33 class WebTestProxyBase; | 33 class WebTestProxyBase; |
34 struct LeakDetectionResult; | 34 struct LeakDetectionResult; |
35 | 35 |
36 // This is the renderer side of the webkit test runner. | 36 // This is the renderer side of the webkit test runner. |
37 class WebKitTestRunner : public RenderViewObserver, | 37 class WebKitTestRunner : public RenderViewObserver, |
38 public RenderViewObserverTracker<WebKitTestRunner>, | 38 public RenderViewObserverTracker<WebKitTestRunner>, |
39 public WebTestRunner::WebTestDelegate { | 39 public WebTestDelegate { |
40 public: | 40 public: |
41 explicit WebKitTestRunner(RenderView* render_view); | 41 explicit WebKitTestRunner(RenderView* render_view); |
42 virtual ~WebKitTestRunner(); | 42 virtual ~WebKitTestRunner(); |
43 | 43 |
44 // RenderViewObserver implementation. | 44 // RenderViewObserver implementation. |
45 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 45 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
46 virtual void DidClearWindowObject(blink::WebLocalFrame* frame, | 46 virtual void DidClearWindowObject(blink::WebLocalFrame* frame, |
47 int world_id) OVERRIDE; | 47 int world_id) OVERRIDE; |
48 virtual void Navigate(const GURL& url) OVERRIDE; | 48 virtual void Navigate(const GURL& url) OVERRIDE; |
49 virtual void DidCommitProvisionalLoad(blink::WebLocalFrame* frame, | 49 virtual void DidCommitProvisionalLoad(blink::WebLocalFrame* frame, |
(...skipping 10 matching lines...) Expand all Loading... |
60 const blink::WebGamepad& gamepad) OVERRIDE; | 60 const blink::WebGamepad& gamepad) OVERRIDE; |
61 virtual void didDisconnectGamepad(int index, | 61 virtual void didDisconnectGamepad(int index, |
62 const blink::WebGamepad& gamepad) OVERRIDE; | 62 const blink::WebGamepad& gamepad) OVERRIDE; |
63 virtual void setDeviceMotionData( | 63 virtual void setDeviceMotionData( |
64 const blink::WebDeviceMotionData& data) OVERRIDE; | 64 const blink::WebDeviceMotionData& data) OVERRIDE; |
65 virtual void setDeviceOrientationData( | 65 virtual void setDeviceOrientationData( |
66 const blink::WebDeviceOrientationData& data) OVERRIDE; | 66 const blink::WebDeviceOrientationData& data) OVERRIDE; |
67 virtual void setScreenOrientation( | 67 virtual void setScreenOrientation( |
68 const blink::WebScreenOrientationType& orientation) OVERRIDE; | 68 const blink::WebScreenOrientationType& orientation) OVERRIDE; |
69 virtual void printMessage(const std::string& message) OVERRIDE; | 69 virtual void printMessage(const std::string& message) OVERRIDE; |
70 virtual void postTask(::WebTestRunner::WebTask* task) OVERRIDE; | 70 virtual void postTask(WebTask* task) OVERRIDE; |
71 virtual void postDelayedTask(::WebTestRunner::WebTask* task, | 71 virtual void postDelayedTask(WebTask* task, long long ms) OVERRIDE; |
72 long long ms) OVERRIDE; | |
73 virtual blink::WebString registerIsolatedFileSystem( | 72 virtual blink::WebString registerIsolatedFileSystem( |
74 const blink::WebVector<blink::WebString>& absolute_filenames) OVERRIDE; | 73 const blink::WebVector<blink::WebString>& absolute_filenames) OVERRIDE; |
75 virtual long long getCurrentTimeInMillisecond() OVERRIDE; | 74 virtual long long getCurrentTimeInMillisecond() OVERRIDE; |
76 virtual blink::WebString getAbsoluteWebStringFromUTF8Path( | 75 virtual blink::WebString getAbsoluteWebStringFromUTF8Path( |
77 const std::string& utf8_path) OVERRIDE; | 76 const std::string& utf8_path) OVERRIDE; |
78 virtual blink::WebURL localFileToDataURL( | 77 virtual blink::WebURL localFileToDataURL( |
79 const blink::WebURL& file_url) OVERRIDE; | 78 const blink::WebURL& file_url) OVERRIDE; |
80 virtual blink::WebURL rewriteLayoutTestsURL( | 79 virtual blink::WebURL rewriteLayoutTestsURL( |
81 const std::string& utf8_url) OVERRIDE; | 80 const std::string& utf8_url) OVERRIDE; |
82 virtual TestPreferences* preferences() OVERRIDE; | 81 virtual TestPreferences* preferences() OVERRIDE; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 151 |
153 scoped_ptr<LeakDetector> leak_detector_; | 152 scoped_ptr<LeakDetector> leak_detector_; |
154 bool needs_leak_detector_; | 153 bool needs_leak_detector_; |
155 | 154 |
156 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); | 155 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); |
157 }; | 156 }; |
158 | 157 |
159 } // namespace content | 158 } // namespace content |
160 | 159 |
161 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 160 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
OLD | NEW |