| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ | 6 #define COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/test_runner/web_task.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "third_party/WebKit/public/web/WebViewClient.h" | 10 #include "third_party/WebKit/public/web/WebViewClient.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 class WebView; | 13 class WebView; |
| 14 } // namespace blink | 14 } // namespace blink |
| 15 | 15 |
| 16 namespace test_runner { | 16 namespace test_runner { |
| 17 | 17 |
| 18 class EventSender; | 18 class EventSender; |
| 19 class TestRunner; | 19 class TestRunner; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 blink::WebSpeechRecognizer* speechRecognizer() override; | 61 blink::WebSpeechRecognizer* speechRecognizer() override; |
| 62 bool requestPointerLock() override; | 62 bool requestPointerLock() override; |
| 63 void requestPointerUnlock() override; | 63 void requestPointerUnlock() override; |
| 64 bool isPointerLocked() override; | 64 bool isPointerLocked() override; |
| 65 void didFocus() override; | 65 void didFocus() override; |
| 66 void setToolTipText(const blink::WebString& text, | 66 void setToolTipText(const blink::WebString& text, |
| 67 blink::WebTextDirection direction) override; | 67 blink::WebTextDirection direction) override; |
| 68 void resetInputMethod() override; | 68 void resetInputMethod() override; |
| 69 blink::WebString acceptLanguages() override; | 69 blink::WebString acceptLanguages() override; |
| 70 | 70 |
| 71 // Members expected by WebTask-related templates. | |
| 72 WebTaskList* mutable_task_list() { return &task_list_; } | |
| 73 | |
| 74 private: | 71 private: |
| 75 void AnimateNow(); | 72 void AnimateNow(); |
| 76 | 73 |
| 77 // Borrowed pointers to other parts of Layout Tests state. | 74 // Borrowed pointers to other parts of Layout Tests state. |
| 78 TestRunner* test_runner_; | 75 TestRunner* test_runner_; |
| 79 WebTestDelegate* delegate_; | 76 WebTestDelegate* delegate_; |
| 80 EventSender* event_sender_; | 77 EventSender* event_sender_; |
| 81 WebTestProxyBase* web_test_proxy_base_; | 78 WebTestProxyBase* web_test_proxy_base_; |
| 82 | 79 |
| 83 bool animation_scheduled_; | 80 bool animation_scheduled_; |
| 84 | 81 |
| 85 WebTaskList task_list_; | 82 base::WeakPtrFactory<WebViewTestClient> weak_factory_; |
| 86 | 83 |
| 87 DISALLOW_COPY_AND_ASSIGN(WebViewTestClient); | 84 DISALLOW_COPY_AND_ASSIGN(WebViewTestClient); |
| 88 }; | 85 }; |
| 89 | 86 |
| 90 } // namespace test_runner | 87 } // namespace test_runner |
| 91 | 88 |
| 92 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ | 89 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ |
| OLD | NEW |