Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: components/test_runner/web_test_delegate.h

Issue 2513423003: DevTools: Convert inspector-unit tests to use reusable test harness (Closed)
Patch Set: clean diff Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 virtual void CloseRemainingWindows() = 0; 237 virtual void CloseRemainingWindows() = 0;
238 238
239 virtual void DeleteAllCookies() = 0; 239 virtual void DeleteAllCookies() = 0;
240 240
241 // Returns the length of the back/forward history of the main WebView. 241 // Returns the length of the back/forward history of the main WebView.
242 virtual int NavigationEntryCount() = 0; 242 virtual int NavigationEntryCount() = 0;
243 243
244 // The following trigger navigations on the main WebView. 244 // The following trigger navigations on the main WebView.
245 virtual void GoToOffset(int offset) = 0; 245 virtual void GoToOffset(int offset) = 0;
246 virtual void Reload() = 0; 246 virtual void Reload() = 0;
247 virtual void LoadURLForMainFrame(const blink::WebURL& url);
247 virtual void LoadURLForFrame(const blink::WebURL& url, 248 virtual void LoadURLForFrame(const blink::WebURL& url,
248 const std::string& frame_name) = 0; 249 const std::string& frame_name) = 0;
249 250
250 // Returns true if resource requests to external URLs should be permitted. 251 // Returns true if resource requests to external URLs should be permitted.
251 virtual bool AllowExternalPages() = 0; 252 virtual bool AllowExternalPages() = 0;
252 253
253 // Fetch the manifest for a given WebView from the given url. 254 // Fetch the manifest for a given WebView from the given url.
254 virtual void FetchManifest( 255 virtual void FetchManifest(
255 blink::WebView* view, 256 blink::WebView* view,
256 const GURL& url, 257 const GURL& url,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 virtual void RunIdleTasks(const base::Closure& callback) = 0; 300 virtual void RunIdleTasks(const base::Closure& callback) = 0;
300 301
301 // Forces a text input state update for the client of WebFrameWidget 302 // Forces a text input state update for the client of WebFrameWidget
302 // associated with |frame|. 303 // associated with |frame|.
303 virtual void ForceTextInputStateUpdate(blink::WebFrame* frame) = 0; 304 virtual void ForceTextInputStateUpdate(blink::WebFrame* frame) = 0;
304 }; 305 };
305 306
306 } // namespace test_runner 307 } // namespace test_runner
307 308
308 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 309 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698