OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ | 5 #ifndef COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ |
6 #define COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ | 6 #define COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "components/test_runner/test_preferences.h" | 10 #include "components/test_runner/test_preferences.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 void CloseDevTools() override; | 68 void CloseDevTools() override; |
69 void EvaluateInWebInspector(long call_id, const std::string& script) override; | 69 void EvaluateInWebInspector(long call_id, const std::string& script) override; |
70 void ClearAllDatabases() override; | 70 void ClearAllDatabases() override; |
71 void SetDatabaseQuota(int quota) override; | 71 void SetDatabaseQuota(int quota) override; |
72 void SimulateWebNotificationClick(const std::string& title, | 72 void SimulateWebNotificationClick(const std::string& title, |
73 int action_index) override; | 73 int action_index) override; |
74 void SetDeviceScaleFactor(float factor) override; | 74 void SetDeviceScaleFactor(float factor) override; |
75 void SetDeviceColorProfile(const std::string& name) override; | 75 void SetDeviceColorProfile(const std::string& name) override; |
76 void SetBluetoothMockDataSet(const std::string& data_set) override; | 76 void SetBluetoothMockDataSet(const std::string& data_set) override; |
77 void SetBluetoothManualChooser() override; | 77 void SetBluetoothManualChooser() override; |
78 std::vector<std::string> GetBluetoothManualChooserEvents() override; | 78 void GetBluetoothManualChooserEvents( |
| 79 const base::Callback<void(const std::vector<std::string>&)>& callback) |
| 80 override; |
79 void SendBluetoothManualChooserEvent(const std::string& event, | 81 void SendBluetoothManualChooserEvent(const std::string& event, |
80 const std::string& argument) override; | 82 const std::string& argument) override; |
81 void SetGeofencingMockProvider(bool service_available) override; | 83 void SetGeofencingMockProvider(bool service_available) override; |
82 void ClearGeofencingMockProvider() override; | 84 void ClearGeofencingMockProvider() override; |
83 void SetGeofencingMockPosition(double latitude, double longitude) override; | 85 void SetGeofencingMockPosition(double latitude, double longitude) override; |
84 void SetFocus(test_runner::WebTestProxyBase* proxy, bool focus) override; | 86 void SetFocus(test_runner::WebTestProxyBase* proxy, bool focus) override; |
85 void SetAcceptAllCookies(bool accept) override; | 87 void SetAcceptAllCookies(bool accept) override; |
86 std::string PathToLocalResource(const std::string& resource) override; | 88 std::string PathToLocalResource(const std::string& resource) override; |
87 void SetLocale(const std::string& locale) override; | 89 void SetLocale(const std::string& locale) override; |
88 void TestFinished() override; | 90 void TestFinished() override; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 test_runner::WebTestInterfaces* test_interfaces_; | 124 test_runner::WebTestInterfaces* test_interfaces_; |
123 test_runner::WebTestProxyBase* proxy_; | 125 test_runner::WebTestProxyBase* proxy_; |
124 base::Closure completion_callback_; | 126 base::Closure completion_callback_; |
125 | 127 |
126 DISALLOW_COPY_AND_ASSIGN(WebTestDelegateImpl); | 128 DISALLOW_COPY_AND_ASSIGN(WebTestDelegateImpl); |
127 }; | 129 }; |
128 | 130 |
129 } // namespace html_viewer | 131 } // namespace html_viewer |
130 | 132 |
131 #endif // COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ | 133 #endif // COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ |
OLD | NEW |