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

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

Issue 659043003: Implement the ability to layout test Web Worker-based Notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 6 years, 2 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
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Controls WebSQL databases. 134 // Controls WebSQL databases.
135 virtual void ClearAllDatabases() = 0; 135 virtual void ClearAllDatabases() = 0;
136 virtual void SetDatabaseQuota(int quota) = 0; 136 virtual void SetDatabaseQuota(int quota) = 0;
137 137
138 // Controls Web Notification permissions. 138 // Controls Web Notification permissions.
139 virtual blink::WebNotificationPresenter::Permission 139 virtual blink::WebNotificationPresenter::Permission
140 CheckWebNotificationPermission(const GURL& origin) = 0; 140 CheckWebNotificationPermission(const GURL& origin) = 0;
141 virtual void GrantWebNotificationPermission(const GURL& origin, 141 virtual void GrantWebNotificationPermission(const GURL& origin,
142 bool permission_granted) = 0; 142 bool permission_granted) = 0;
143 virtual void ClearWebNotificationPermissions() = 0; 143 virtual void ClearWebNotificationPermissions() = 0;
144 virtual void SimulateWebNotificationClick(const std::string& title) = 0;
144 145
145 // Controls the device scale factor of the main WebView for hidpi tests. 146 // Controls the device scale factor of the main WebView for hidpi tests.
146 virtual void SetDeviceScaleFactor(float factor) = 0; 147 virtual void SetDeviceScaleFactor(float factor) = 0;
147 148
148 // Change the device color profile while running a layout test. 149 // Change the device color profile while running a layout test.
149 virtual void SetDeviceColorProfile(const std::string& name) = 0; 150 virtual void SetDeviceColorProfile(const std::string& name) = 0;
150 151
151 // Controls which WebView should be focused. 152 // Controls which WebView should be focused.
152 virtual void SetFocus(WebTestProxyBase* proxy, bool focus) = 0; 153 virtual void SetFocus(WebTestProxyBase* proxy, bool focus) = 0;
153 154
(...skipping 29 matching lines...) Expand all
183 virtual bool AllowExternalPages() = 0; 184 virtual bool AllowExternalPages() = 0;
184 185
185 // Returns a text dump the back/forward history for the WebView associated 186 // Returns a text dump the back/forward history for the WebView associated
186 // with the given WebTestProxyBase. 187 // with the given WebTestProxyBase.
187 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; 188 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0;
188 }; 189 };
189 190
190 } // namespace content 191 } // namespace content
191 192
192 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 193 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698