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

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: Make reply field nullable in .idl files; add test cases for empty and null 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
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(
155 int action_index) = 0; 155 const std::string& title,
156 int action_index,
157 const base::NullableString16& reply) = 0;
156 virtual void SimulateWebNotificationClose(const std::string& title, 158 virtual void SimulateWebNotificationClose(const std::string& title,
157 bool by_user) = 0; 159 bool by_user) = 0;
158 160
159 // Controls the device scale factor of the main WebView for hidpi tests. 161 // Controls the device scale factor of the main WebView for hidpi tests.
160 virtual void SetDeviceScaleFactor(float factor) = 0; 162 virtual void SetDeviceScaleFactor(float factor) = 0;
161 163
162 // When use-zoom-for-dsf mode is enabled, this returns the scale to 164 // When use-zoom-for-dsf mode is enabled, this returns the scale to
163 // convert from window coordinates to viewport coordinates. When 165 // convert from window coordinates to viewport coordinates. When
164 // use-zoom-for-dsf is disabled, this return always 1.0f. 166 // use-zoom-for-dsf is disabled, this return always 1.0f.
165 virtual float GetWindowToViewportScale() = 0; 167 virtual float GetWindowToViewportScale() = 0;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 292
291 virtual float GetDeviceScaleFactor() const = 0; 293 virtual float GetDeviceScaleFactor() const = 0;
292 294
293 // Run all pending idle tasks, and then run callback. 295 // Run all pending idle tasks, and then run callback.
294 virtual void RunIdleTasks(const base::Closure& callback) = 0; 296 virtual void RunIdleTasks(const base::Closure& callback) = 0;
295 }; 297 };
296 298
297 } // namespace test_runner 299 } // namespace test_runner
298 300
299 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 301 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | content/shell/browser/layout_test/layout_test_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698