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 "third_party/WebKit/public/testing/WebPreferences.h" | 16 #include "third_party/WebKit/public/testing/WebPreferences.h" |
17 #include "third_party/WebKit/public/testing/WebTestDelegate.h" | 17 #include "third_party/WebKit/public/testing/WebTestDelegate.h" |
18 #include "v8/include/v8.h" | 18 #include "v8/include/v8.h" |
19 | 19 |
20 class SkCanvas; | 20 class SkCanvas; |
21 | 21 |
22 namespace WebKit { | 22 namespace WebKit { |
| 23 class WebDeviceMotionData; |
23 struct WebRect; | 24 struct WebRect; |
24 } | 25 } |
25 | 26 |
26 namespace WebTestRunner { | 27 namespace WebTestRunner { |
27 class WebTestProxyBase; | 28 class WebTestProxyBase; |
28 } | 29 } |
29 | 30 |
30 namespace content { | 31 namespace content { |
31 | 32 |
32 // This is the renderer side of the webkit test runner. | 33 // This is the renderer side of the webkit test runner. |
(...skipping 11 matching lines...) Expand all Loading... |
44 virtual void DidCommitProvisionalLoad(WebKit::WebFrame* frame, | 45 virtual void DidCommitProvisionalLoad(WebKit::WebFrame* frame, |
45 bool is_new_navigation) OVERRIDE; | 46 bool is_new_navigation) OVERRIDE; |
46 virtual void DidFailProvisionalLoad( | 47 virtual void DidFailProvisionalLoad( |
47 WebKit::WebFrame* frame, const WebKit::WebURLError& error) OVERRIDE; | 48 WebKit::WebFrame* frame, const WebKit::WebURLError& error) OVERRIDE; |
48 | 49 |
49 // WebTestDelegate implementation. | 50 // WebTestDelegate implementation. |
50 virtual void clearEditCommand(); | 51 virtual void clearEditCommand(); |
51 virtual void setEditCommand(const std::string& name, | 52 virtual void setEditCommand(const std::string& name, |
52 const std::string& value); | 53 const std::string& value); |
53 virtual void setGamepadData(const WebKit::WebGamepads& gamepads); | 54 virtual void setGamepadData(const WebKit::WebGamepads& gamepads); |
| 55 virtual void setDeviceMotionData(const WebKit::WebDeviceMotionData& data); |
54 virtual void printMessage(const std::string& message); | 56 virtual void printMessage(const std::string& message); |
55 virtual void postTask(::WebTestRunner::WebTask* task); | 57 virtual void postTask(::WebTestRunner::WebTask* task); |
56 virtual void postDelayedTask(::WebTestRunner::WebTask* task, | 58 virtual void postDelayedTask(::WebTestRunner::WebTask* task, |
57 long long ms); | 59 long long ms); |
58 virtual WebKit::WebString registerIsolatedFileSystem( | 60 virtual WebKit::WebString registerIsolatedFileSystem( |
59 const WebKit::WebVector<WebKit::WebString>& absolute_filenames); | 61 const WebKit::WebVector<WebKit::WebString>& absolute_filenames); |
60 virtual long long getCurrentTimeInMillisecond(); | 62 virtual long long getCurrentTimeInMillisecond(); |
61 virtual WebKit::WebString getAbsoluteWebStringFromUTF8Path( | 63 virtual WebKit::WebString getAbsoluteWebStringFromUTF8Path( |
62 const std::string& utf8_path); | 64 const std::string& utf8_path); |
63 virtual WebKit::WebURL localFileToDataURL(const WebKit::WebURL& file_url); | 65 virtual WebKit::WebURL localFileToDataURL(const WebKit::WebURL& file_url); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 bool is_main_window_; | 128 bool is_main_window_; |
127 | 129 |
128 bool focus_on_next_commit_; | 130 bool focus_on_next_commit_; |
129 | 131 |
130 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); | 132 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); |
131 }; | 133 }; |
132 | 134 |
133 } // namespace content | 135 } // namespace content |
134 | 136 |
135 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 137 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
OLD | NEW |