| 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/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/test_runner/test_preferences.h" | 9 #include "components/test_runner/test_preferences.h" |
| 10 #include "components/test_runner/web_test_delegate.h" | 10 #include "components/test_runner/web_test_delegate.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 void EnableAutoResizeMode(const blink::WebSize& min_size, | 58 void EnableAutoResizeMode(const blink::WebSize& min_size, |
| 59 const blink::WebSize& max_size) override; | 59 const blink::WebSize& max_size) override; |
| 60 void DisableAutoResizeMode(const blink::WebSize& new_size) override; | 60 void DisableAutoResizeMode(const blink::WebSize& new_size) override; |
| 61 void ClearDevToolsLocalStorage() override; | 61 void ClearDevToolsLocalStorage() override; |
| 62 void ShowDevTools(const std::string& settings, | 62 void ShowDevTools(const std::string& settings, |
| 63 const std::string& frontend_url) override; | 63 const std::string& frontend_url) override; |
| 64 void CloseDevTools() override; | 64 void CloseDevTools() override; |
| 65 void EvaluateInWebInspector(long call_id, const std::string& script) override; | 65 void EvaluateInWebInspector(long call_id, const std::string& script) override; |
| 66 void ClearAllDatabases() override; | 66 void ClearAllDatabases() override; |
| 67 void SetDatabaseQuota(int quota) override; | 67 void SetDatabaseQuota(int quota) override; |
| 68 void SimulateWebNotificationClick(const std::string& title) override; | 68 void SimulateWebNotificationClick(const std::string& title, |
| 69 int action_index) override; |
| 69 void SetDeviceScaleFactor(float factor) override; | 70 void SetDeviceScaleFactor(float factor) override; |
| 70 void SetDeviceColorProfile(const std::string& name) override; | 71 void SetDeviceColorProfile(const std::string& name) override; |
| 71 void SetBluetoothMockDataSet(const std::string& data_set) override; | 72 void SetBluetoothMockDataSet(const std::string& data_set) override; |
| 72 void SetGeofencingMockProvider(bool service_available) override; | 73 void SetGeofencingMockProvider(bool service_available) override; |
| 73 void ClearGeofencingMockProvider() override; | 74 void ClearGeofencingMockProvider() override; |
| 74 void SetGeofencingMockPosition(double latitude, double longitude) override; | 75 void SetGeofencingMockPosition(double latitude, double longitude) override; |
| 75 void SetFocus(test_runner::WebTestProxyBase* proxy, bool focus) override; | 76 void SetFocus(test_runner::WebTestProxyBase* proxy, bool focus) override; |
| 76 void SetAcceptAllCookies(bool accept) override; | 77 void SetAcceptAllCookies(bool accept) override; |
| 77 std::string PathToLocalResource(const std::string& resource) override; | 78 std::string PathToLocalResource(const std::string& resource) override; |
| 78 void SetLocale(const std::string& locale) override; | 79 void SetLocale(const std::string& locale) override; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 test_runner::TestPreferences prefs_; | 116 test_runner::TestPreferences prefs_; |
| 116 test_runner::WebTestInterfaces* test_interfaces_; | 117 test_runner::WebTestInterfaces* test_interfaces_; |
| 117 test_runner::WebTestProxyBase* proxy_; | 118 test_runner::WebTestProxyBase* proxy_; |
| 118 | 119 |
| 119 DISALLOW_COPY_AND_ASSIGN(WebTestDelegateImpl); | 120 DISALLOW_COPY_AND_ASSIGN(WebTestDelegateImpl); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 } // namespace html_viewer | 123 } // namespace html_viewer |
| 123 | 124 |
| 124 #endif // COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ | 125 #endif // COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ |
| OLD | NEW |