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