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

Side by Side Diff: content/shell/renderer/test_runner/web_test_delegate.h

Issue 907893002: Retry to add MockPresentationClient to use in layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years, 10 months 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" 10 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 virtual void SetScreenOrientation( 63 virtual void SetScreenOrientation(
64 const blink::WebScreenOrientationType& orientation) = 0; 64 const blink::WebScreenOrientationType& orientation) = 0;
65 65
66 // Reset the screen orientation data used for testing. 66 // Reset the screen orientation data used for testing.
67 virtual void ResetScreenOrientation() = 0; 67 virtual void ResetScreenOrientation() = 0;
68 68
69 // Notifies blink about a change in battery status. 69 // Notifies blink about a change in battery status.
70 virtual void DidChangeBatteryStatus( 70 virtual void DidChangeBatteryStatus(
71 const blink::WebBatteryStatus& status) = 0; 71 const blink::WebBatteryStatus& status) = 0;
72 72
73 // Sets second screen availability for the Presentation API.
74 virtual void SetScreenAvailability(bool available) = 0;
75
76 // Resets the Presentation API client for testing.
77 virtual void ResetPresentationService() = 0;
78
73 // Add a message to the text dump for the layout test. 79 // Add a message to the text dump for the layout test.
74 virtual void PrintMessage(const std::string& message) = 0; 80 virtual void PrintMessage(const std::string& message) = 0;
75 81
76 // The delegate takes ownership of the WebTask objects and is responsible 82 // The delegate takes ownership of the WebTask objects and is responsible
77 // for deleting them. 83 // for deleting them.
78 virtual void PostTask(WebTask* task) = 0; 84 virtual void PostTask(WebTask* task) = 0;
79 virtual void PostDelayedTask(WebTask* task, long long ms) = 0; 85 virtual void PostDelayedTask(WebTask* task, long long ms) = 0;
80 86
81 // Register a new isolated filesystem with the given files, and return the 87 // Register a new isolated filesystem with the given files, and return the
82 // new filesystem id. 88 // new filesystem id.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 virtual bool AllowExternalPages() = 0; 205 virtual bool AllowExternalPages() = 0;
200 206
201 // Returns a text dump the back/forward history for the WebView associated 207 // Returns a text dump the back/forward history for the WebView associated
202 // with the given WebTestProxyBase. 208 // with the given WebTestProxyBase.
203 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; 209 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0;
204 }; 210 };
205 211
206 } // namespace content 212 } // namespace content
207 213
208 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 214 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/web_frame_test_proxy.h ('k') | content/shell/renderer/test_runner/web_test_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698