| 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_WIDGET_TEST_CLIENT_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_CLIENT_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_CLIENT_H_ | 6 #define COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "third_party/WebKit/public/web/WebWidgetClient.h" | 10 #include "third_party/WebKit/public/web/WebWidgetClient.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 virtual ~WebWidgetTestClient(); | 35 virtual ~WebWidgetTestClient(); |
| 36 | 36 |
| 37 // WebWidgetClient overrides needed by WebWidgetTestProxy. | 37 // WebWidgetClient overrides needed by WebWidgetTestProxy. |
| 38 blink::WebScreenInfo screenInfo() override; | 38 blink::WebScreenInfo screenInfo() override; |
| 39 void scheduleAnimation() override; | 39 void scheduleAnimation() override; |
| 40 bool requestPointerLock() override; | 40 bool requestPointerLock() override; |
| 41 void requestPointerUnlock() override; | 41 void requestPointerUnlock() override; |
| 42 bool isPointerLocked() override; | 42 bool isPointerLocked() override; |
| 43 void setToolTipText(const blink::WebString& text, | 43 void setToolTipText(const blink::WebString& text, |
| 44 blink::WebTextDirection direction) override; | 44 blink::WebTextDirection direction) override; |
| 45 void resetInputMethod() override; | |
| 46 void startDragging(blink::WebReferrerPolicy policy, | 45 void startDragging(blink::WebReferrerPolicy policy, |
| 47 const blink::WebDragData& data, | 46 const blink::WebDragData& data, |
| 48 blink::WebDragOperationsMask mask, | 47 blink::WebDragOperationsMask mask, |
| 49 const blink::WebImage& image, | 48 const blink::WebImage& image, |
| 50 const blink::WebPoint& point) override; | 49 const blink::WebPoint& point) override; |
| 51 | 50 |
| 52 private: | 51 private: |
| 53 void AnimateNow(); | 52 void AnimateNow(); |
| 54 | 53 |
| 55 WebTestDelegate* delegate(); | 54 WebTestDelegate* delegate(); |
| 56 TestRunnerForSpecificView* view_test_runner(); | 55 TestRunnerForSpecificView* view_test_runner(); |
| 57 TestRunner* test_runner(); | 56 TestRunner* test_runner(); |
| 58 | 57 |
| 59 // Borrowed pointer to WebWidgetTestProxyBase. | 58 // Borrowed pointer to WebWidgetTestProxyBase. |
| 60 WebWidgetTestProxyBase* web_widget_test_proxy_base_; | 59 WebWidgetTestProxyBase* web_widget_test_proxy_base_; |
| 61 | 60 |
| 62 bool animation_scheduled_; | 61 bool animation_scheduled_; |
| 63 | 62 |
| 64 base::WeakPtrFactory<WebWidgetTestClient> weak_factory_; | 63 base::WeakPtrFactory<WebWidgetTestClient> weak_factory_; |
| 65 | 64 |
| 66 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestClient); | 65 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestClient); |
| 67 }; | 66 }; |
| 68 | 67 |
| 69 } // namespace test_runner | 68 } // namespace test_runner |
| 70 | 69 |
| 71 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_CLIENT_H_ | 70 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_CLIENT_H_ |
| OLD | NEW |