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

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

Issue 1262893006: Enable testing NotificationEvent.action (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@click_actions
Patch Set: TestRunnerBindings::SimulateWebNotificationClick throws for non int index Created 5 years, 4 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 // Evaluate the given script in the DevTools agent. 143 // Evaluate the given script in the DevTools agent.
144 virtual void EvaluateInWebInspector(long call_id, 144 virtual void EvaluateInWebInspector(long call_id,
145 const std::string& script) = 0; 145 const std::string& script) = 0;
146 146
147 // Controls WebSQL databases. 147 // Controls WebSQL databases.
148 virtual void ClearAllDatabases() = 0; 148 virtual void ClearAllDatabases() = 0;
149 virtual void SetDatabaseQuota(int quota) = 0; 149 virtual void SetDatabaseQuota(int quota) = 0;
150 150
151 // Controls Web Notifications. 151 // Controls Web Notifications.
152 virtual void SimulateWebNotificationClick(const std::string& title) = 0; 152 virtual void SimulateWebNotificationClick(const std::string& title,
153 int action_index) = 0;
153 154
154 // Controls the device scale factor of the main WebView for hidpi tests. 155 // Controls the device scale factor of the main WebView for hidpi tests.
155 virtual void SetDeviceScaleFactor(float factor) = 0; 156 virtual void SetDeviceScaleFactor(float factor) = 0;
156 157
157 // Change the device color profile while running a layout test. 158 // Change the device color profile while running a layout test.
158 virtual void SetDeviceColorProfile(const std::string& name) = 0; 159 virtual void SetDeviceColorProfile(const std::string& name) = 0;
159 160
160 // Change the bluetooth test data while running a layout test. 161 // Change the bluetooth test data while running a layout test.
161 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0; 162 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0;
162 163
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 const std::string& platform) = 0; 256 const std::string& platform) = 0;
256 257
257 virtual blink::WebPlugin* CreatePluginPlaceholder( 258 virtual blink::WebPlugin* CreatePluginPlaceholder(
258 blink::WebLocalFrame* frame, 259 blink::WebLocalFrame* frame,
259 const blink::WebPluginParams& params) = 0; 260 const blink::WebPluginParams& params) = 0;
260 }; 261 };
261 262
262 } // namespace test_runner 263 } // namespace test_runner
263 264
264 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 265 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698