| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TEST_RUNNER_WEB_TEST_PROXY_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ |
| 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 blink::WebSecurityOrigin target, | 237 blink::WebSecurityOrigin target, |
| 238 blink::WebDOMMessageEvent event); | 238 blink::WebDOMMessageEvent event); |
| 239 void ResetInputMethod(); | 239 void ResetInputMethod(); |
| 240 | 240 |
| 241 blink::WebString acceptLanguages(); | 241 blink::WebString acceptLanguages(); |
| 242 blink::WebPushClient* GetWebPushClient(); | 242 blink::WebPushClient* GetWebPushClient(); |
| 243 | 243 |
| 244 private: | 244 private: |
| 245 template <class, typename, typename> | 245 template <class, typename, typename> |
| 246 friend class WebFrameTestProxy; | 246 friend class WebFrameTestProxy; |
| 247 void LocationChangeDone(blink::WebFrame* frame); | 247 |
| 248 enum CheckDoneReason { |
| 249 LoadFinished, |
| 250 MainResourceLoadFailed, |
| 251 ResourceLoadCompleted |
| 252 }; |
| 253 void CheckDone(blink::WebLocalFrame* frame, CheckDoneReason reason); |
| 248 void AnimateNow(); | 254 void AnimateNow(); |
| 249 void DrawSelectionRect(SkCanvas* canvas); | 255 void DrawSelectionRect(SkCanvas* canvas); |
| 250 void DidDisplayAsync(const base::Closure& callback, const SkBitmap& bitmap); | 256 void DidDisplayAsync(const base::Closure& callback, const SkBitmap& bitmap); |
| 251 | 257 |
| 252 blink::WebWidget* web_widget() const { return web_widget_; } | 258 blink::WebWidget* web_widget() const { return web_widget_; } |
| 253 | 259 |
| 254 TestInterfaces* test_interfaces_; | 260 TestInterfaces* test_interfaces_; |
| 255 WebTestDelegate* delegate_; | 261 WebTestDelegate* delegate_; |
| 256 blink::WebWidget* web_widget_; | 262 blink::WebWidget* web_widget_; |
| 257 | 263 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 return WebTestProxyBase::GetWebPushClient(); | 399 return WebTestProxyBase::GetWebPushClient(); |
| 394 } | 400 } |
| 395 | 401 |
| 396 private: | 402 private: |
| 397 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 403 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
| 398 }; | 404 }; |
| 399 | 405 |
| 400 } // namespace content | 406 } // namespace content |
| 401 | 407 |
| 402 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ | 408 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ |
| OLD | NEW |