OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ |
6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 int request_id, | 142 int request_id, |
143 const std::vector<std::string>& event_platforms, | 143 const std::vector<std::string>& event_platforms, |
144 const base::Callback<void(bool)>& callback) override; | 144 const base::Callback<void(bool)>& callback) override; |
145 void ResolveBeforeInstallPromptPromise( | 145 void ResolveBeforeInstallPromptPromise( |
146 int request_id, | 146 int request_id, |
147 const std::string& platform) override; | 147 const std::string& platform) override; |
148 blink::WebPlugin* CreatePluginPlaceholder( | 148 blink::WebPlugin* CreatePluginPlaceholder( |
149 blink::WebLocalFrame* frame, | 149 blink::WebLocalFrame* frame, |
150 const blink::WebPluginParams& params) override; | 150 const blink::WebPluginParams& params) override; |
151 void OnWebTestProxyBaseDestroy(test_runner::WebTestProxyBase* proxy) override; | 151 void OnWebTestProxyBaseDestroy(test_runner::WebTestProxyBase* proxy) override; |
| 152 blink::WebPoint ConvertDIPToNative( |
| 153 const blink::WebPoint& point_in_dip) const override; |
152 | 154 |
153 void Reset(); | 155 void Reset(); |
154 | 156 |
155 void set_proxy(test_runner::WebTestProxyBase* proxy) { proxy_ = proxy; } | 157 void set_proxy(test_runner::WebTestProxyBase* proxy) { proxy_ = proxy; } |
156 test_runner::WebTestProxyBase* proxy() const { return proxy_; } | 158 test_runner::WebTestProxyBase* proxy() const { return proxy_; } |
157 | 159 |
158 void ReportLeakDetectionResult(const LeakDetectionResult& result); | 160 void ReportLeakDetectionResult(const LeakDetectionResult& result); |
159 | 161 |
160 private: | 162 private: |
161 // Message handlers. | 163 // Message handlers. |
(...skipping 29 matching lines...) Expand all Loading... |
191 std::deque<base::Callback<void(const std::vector<std::string>&)>> | 193 std::deque<base::Callback<void(const std::vector<std::string>&)>> |
192 get_bluetooth_events_callbacks_; | 194 get_bluetooth_events_callbacks_; |
193 | 195 |
194 bool is_main_window_; | 196 bool is_main_window_; |
195 | 197 |
196 bool focus_on_next_commit_; | 198 bool focus_on_next_commit_; |
197 | 199 |
198 scoped_ptr<LeakDetector> leak_detector_; | 200 scoped_ptr<LeakDetector> leak_detector_; |
199 bool needs_leak_detector_; | 201 bool needs_leak_detector_; |
200 | 202 |
| 203 float device_scale_factor_; |
| 204 |
201 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); | 205 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); |
202 }; | 206 }; |
203 | 207 |
204 } // namespace content | 208 } // namespace content |
205 | 209 |
206 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ | 210 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ |
OLD | NEW |