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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 virtual int navigationEntryCount(); | 87 virtual int navigationEntryCount(); |
88 virtual void goToOffset(int offset); | 88 virtual void goToOffset(int offset); |
89 virtual void reload(); | 89 virtual void reload(); |
90 virtual void loadURLForFrame(const WebKit::WebURL& url, | 90 virtual void loadURLForFrame(const WebKit::WebURL& url, |
91 const std::string& frame_name); | 91 const std::string& frame_name); |
92 virtual bool allowExternalPages(); | 92 virtual bool allowExternalPages(); |
93 virtual void captureHistoryForWindow( | 93 virtual void captureHistoryForWindow( |
94 WebTestRunner::WebTestProxyBase* proxy, | 94 WebTestRunner::WebTestProxyBase* proxy, |
95 WebKit::WebVector<WebKit::WebHistoryItem>* history, | 95 WebKit::WebVector<WebKit::WebHistoryItem>* history, |
96 size_t* currentEntryIndex); | 96 size_t* currentEntryIndex); |
| 97 |
| 98 // TODO(scherkus): Remove once https://codereview.chromium.org/18130006 |
| 99 // rolls into Chromium. |
97 virtual WebKit::WebMediaPlayer* createWebMediaPlayer( | 100 virtual WebKit::WebMediaPlayer* createWebMediaPlayer( |
98 WebKit::WebFrame* frame, | 101 WebKit::WebFrame* frame, |
99 const WebKit::WebURL& url, | 102 const WebKit::WebURL& url, |
100 WebKit::WebMediaPlayerClient* client); | 103 WebKit::WebMediaPlayerClient* client); |
101 | 104 |
102 void Reset(); | 105 void Reset(); |
103 | 106 |
104 void set_proxy(::WebTestRunner::WebTestProxyBase* proxy) { proxy_ = proxy; } | 107 void set_proxy(::WebTestRunner::WebTestProxyBase* proxy) { proxy_ = proxy; } |
105 ::WebTestRunner::WebTestProxyBase* proxy() const { return proxy_; } | 108 ::WebTestRunner::WebTestProxyBase* proxy() const { return proxy_; } |
106 | 109 |
(...skipping 20 matching lines...) Expand all Loading... |
127 ShellTestConfiguration test_config_; | 130 ShellTestConfiguration test_config_; |
128 | 131 |
129 std::vector<int> routing_ids_; | 132 std::vector<int> routing_ids_; |
130 std::vector<std::vector<PageState> > session_histories_; | 133 std::vector<std::vector<PageState> > session_histories_; |
131 std::vector<unsigned> current_entry_indexes_; | 134 std::vector<unsigned> current_entry_indexes_; |
132 | 135 |
133 bool is_main_window_; | 136 bool is_main_window_; |
134 | 137 |
135 bool focus_on_next_commit_; | 138 bool focus_on_next_commit_; |
136 | 139 |
| 140 // TODO(scherkus): Remove this after switching to using |
| 141 // RenderViewImpl::createMediaPlayer() http://crbug.com/239826 |
137 scoped_ptr<ShellMediaStreamClient> shell_media_stream_client_; | 142 scoped_ptr<ShellMediaStreamClient> shell_media_stream_client_; |
138 | 143 |
139 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); | 144 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); |
140 }; | 145 }; |
141 | 146 |
142 } // namespace content | 147 } // namespace content |
143 | 148 |
144 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 149 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
OLD | NEW |