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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 virtual void DidCommitProvisionalLoad(WebKit::WebFrame* frame, | 44 virtual void DidCommitProvisionalLoad(WebKit::WebFrame* frame, |
45 bool is_new_navigation) OVERRIDE; | 45 bool is_new_navigation) OVERRIDE; |
46 virtual void DidFailProvisionalLoad( | 46 virtual void DidFailProvisionalLoad( |
47 WebKit::WebFrame* frame, const WebKit::WebURLError& error) OVERRIDE; | 47 WebKit::WebFrame* frame, const WebKit::WebURLError& error) OVERRIDE; |
48 | 48 |
49 // WebTestDelegate implementation. | 49 // WebTestDelegate implementation. |
50 virtual void clearEditCommand(); | 50 virtual void clearEditCommand(); |
51 virtual void setEditCommand(const std::string& name, | 51 virtual void setEditCommand(const std::string& name, |
52 const std::string& value); | 52 const std::string& value); |
53 virtual void setGamepadData(const WebKit::WebGamepads& gamepads); | 53 virtual void setGamepadData(const WebKit::WebGamepads& gamepads); |
| 54 virtual void setDeviceMotionData(const WebKit::WebDeviceMotionData& data); |
54 virtual void printMessage(const std::string& message); | 55 virtual void printMessage(const std::string& message); |
55 virtual void postTask(::WebTestRunner::WebTask* task); | 56 virtual void postTask(::WebTestRunner::WebTask* task); |
56 virtual void postDelayedTask(::WebTestRunner::WebTask* task, | 57 virtual void postDelayedTask(::WebTestRunner::WebTask* task, |
57 long long ms); | 58 long long ms); |
58 virtual WebKit::WebString registerIsolatedFileSystem( | 59 virtual WebKit::WebString registerIsolatedFileSystem( |
59 const WebKit::WebVector<WebKit::WebString>& absolute_filenames); | 60 const WebKit::WebVector<WebKit::WebString>& absolute_filenames); |
60 virtual long long getCurrentTimeInMillisecond(); | 61 virtual long long getCurrentTimeInMillisecond(); |
61 virtual WebKit::WebString getAbsoluteWebStringFromUTF8Path( | 62 virtual WebKit::WebString getAbsoluteWebStringFromUTF8Path( |
62 const std::string& utf8_path); | 63 const std::string& utf8_path); |
63 virtual WebKit::WebURL localFileToDataURL(const WebKit::WebURL& file_url); | 64 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_; | 127 bool is_main_window_; |
127 | 128 |
128 bool focus_on_next_commit_; | 129 bool focus_on_next_commit_; |
129 | 130 |
130 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); | 131 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); |
131 }; | 132 }; |
132 | 133 |
133 } // namespace content | 134 } // namespace content |
134 | 135 |
135 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 136 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
OLD | NEW |