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 WebViewTestProxy. | 37 // WebWidgetClient overrides needed by WebViewTestProxy. |
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 | 45 |
47 private: | 46 private: |
48 void AnimateNow(); | 47 void AnimateNow(); |
49 | 48 |
50 WebTestDelegate* delegate(); | 49 WebTestDelegate* delegate(); |
51 TestRunnerForSpecificView* view_test_runner(); | 50 TestRunnerForSpecificView* view_test_runner(); |
52 TestRunner* test_runner(); | 51 TestRunner* test_runner(); |
53 | 52 |
54 // Borrowed pointer to WebWidgetTestProxyBase. | 53 // Borrowed pointer to WebWidgetTestProxyBase. |
55 WebWidgetTestProxyBase* web_widget_test_proxy_base_; | 54 WebWidgetTestProxyBase* web_widget_test_proxy_base_; |
56 | 55 |
57 bool animation_scheduled_; | 56 bool animation_scheduled_; |
58 | 57 |
59 base::WeakPtrFactory<WebWidgetTestClient> weak_factory_; | 58 base::WeakPtrFactory<WebWidgetTestClient> weak_factory_; |
60 | 59 |
61 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestClient); | 60 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestClient); |
62 }; | 61 }; |
63 | 62 |
64 } // namespace test_runner | 63 } // namespace test_runner |
65 | 64 |
66 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_CLIENT_H_ | 65 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_CLIENT_H_ |
OLD | NEW |