| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 void DispatchBeforeInstallPromptEvent( | 117 void DispatchBeforeInstallPromptEvent( |
| 118 int request_id, | 118 int request_id, |
| 119 const std::vector<std::string>& event_platforms, | 119 const std::vector<std::string>& event_platforms, |
| 120 const base::Callback<void(bool)>& callback) override; | 120 const base::Callback<void(bool)>& callback) override; |
| 121 void ResolveBeforeInstallPromptPromise(int request_id, | 121 void ResolveBeforeInstallPromptPromise(int request_id, |
| 122 const std::string& platform) override; | 122 const std::string& platform) override; |
| 123 blink::WebPlugin* CreatePluginPlaceholder( | 123 blink::WebPlugin* CreatePluginPlaceholder( |
| 124 blink::WebLocalFrame* frame, | 124 blink::WebLocalFrame* frame, |
| 125 const blink::WebPluginParams& params) override; | 125 const blink::WebPluginParams& params) override; |
| 126 void OnWebTestProxyBaseDestroy(test_runner::WebTestProxyBase* base) override; | 126 void OnWebTestProxyBaseDestroy(test_runner::WebTestProxyBase* base) override; |
| 127 blink::WebPoint ConvertDIPToNative( |
| 128 const blink::WebPoint& point_in_dip) const override; |
| 127 | 129 |
| 128 // Must not be constructed until after blink has been initialized. | 130 // Must not be constructed until after blink has been initialized. |
| 129 scoped_ptr<test_runner::TestPreferences> prefs_; | 131 scoped_ptr<test_runner::TestPreferences> prefs_; |
| 130 test_runner::WebTestInterfaces* test_interfaces_; | 132 test_runner::WebTestInterfaces* test_interfaces_; |
| 131 test_runner::WebTestProxyBase* proxy_; | 133 test_runner::WebTestProxyBase* proxy_; |
| 132 base::Closure completion_callback_; | 134 base::Closure completion_callback_; |
| 133 | 135 |
| 134 DISALLOW_COPY_AND_ASSIGN(WebTestDelegateImpl); | 136 DISALLOW_COPY_AND_ASSIGN(WebTestDelegateImpl); |
| 135 }; | 137 }; |
| 136 | 138 |
| 137 } // namespace html_viewer | 139 } // namespace html_viewer |
| 138 | 140 |
| 139 #endif // COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ | 141 #endif // COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ |
| OLD | NEW |