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

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

Issue 2403893002: Add layout test for reply property of notificationclick event (Closed)
Patch Set: Add layout test for reply property of notificationclick event Created 4 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
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Evaluate the given script in the inspector overlay page. 145 // Evaluate the given script in the inspector overlay page.
146 virtual std::string EvaluateInWebInspectorOverlay( 146 virtual std::string EvaluateInWebInspectorOverlay(
147 const std::string& script) = 0; 147 const std::string& script) = 0;
148 148
149 // Controls WebSQL databases. 149 // Controls WebSQL databases.
150 virtual void ClearAllDatabases() = 0; 150 virtual void ClearAllDatabases() = 0;
151 virtual void SetDatabaseQuota(int quota) = 0; 151 virtual void SetDatabaseQuota(int quota) = 0;
152 152
153 // Controls Web Notifications. 153 // Controls Web Notifications.
154 virtual void SimulateWebNotificationClick(const std::string& title, 154 virtual void SimulateWebNotificationClick(const std::string& title,
155 int action_index) = 0; 155 int action_index,
156 const std::string& reply) = 0;
156 virtual void SimulateWebNotificationClose(const std::string& title, 157 virtual void SimulateWebNotificationClose(const std::string& title,
157 bool by_user) = 0; 158 bool by_user) = 0;
158 159
159 // Controls the device scale factor of the main WebView for hidpi tests. 160 // Controls the device scale factor of the main WebView for hidpi tests.
160 virtual void SetDeviceScaleFactor(float factor) = 0; 161 virtual void SetDeviceScaleFactor(float factor) = 0;
161 162
162 // When use-zoom-for-dsf mode is enabled, this returns the scale to 163 // When use-zoom-for-dsf mode is enabled, this returns the scale to
163 // convert from window coordinates to viewport coordinates. When 164 // convert from window coordinates to viewport coordinates. When
164 // use-zoom-for-dsf is disabled, this return always 1.0f. 165 // use-zoom-for-dsf is disabled, this return always 1.0f.
165 virtual float GetWindowToViewportScale() = 0; 166 virtual float GetWindowToViewportScale() = 0;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 291
291 virtual float GetDeviceScaleFactor() const = 0; 292 virtual float GetDeviceScaleFactor() const = 0;
292 293
293 // Run all pending idle tasks, and then run callback. 294 // Run all pending idle tasks, and then run callback.
294 virtual void RunIdleTasks(const base::Closure& callback) = 0; 295 virtual void RunIdleTasks(const base::Closure& callback) = 0;
295 }; 296 };
296 297
297 } // namespace test_runner 298 } // namespace test_runner
298 299
299 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 300 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698