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 20 matching lines...) Expand all Loading... |
31 WebTestProxyBase* web_test_proxy_base); | 31 WebTestProxyBase* web_test_proxy_base); |
32 | 32 |
33 virtual ~WebWidgetTestClient(); | 33 virtual ~WebWidgetTestClient(); |
34 | 34 |
35 // WebWidgetClient overrides needed by WebTestProxy. | 35 // WebWidgetClient overrides needed by WebTestProxy. |
36 blink::WebScreenInfo screenInfo() override; | 36 blink::WebScreenInfo screenInfo() override; |
37 void scheduleAnimation() override; | 37 void scheduleAnimation() override; |
38 bool requestPointerLock() override; | 38 bool requestPointerLock() override; |
39 void requestPointerUnlock() override; | 39 void requestPointerUnlock() override; |
40 bool isPointerLocked() override; | 40 bool isPointerLocked() override; |
41 void didFocus() override; | |
42 void setToolTipText(const blink::WebString& text, | 41 void setToolTipText(const blink::WebString& text, |
43 blink::WebTextDirection direction) override; | 42 blink::WebTextDirection direction) override; |
44 void resetInputMethod() override; | 43 void resetInputMethod() override; |
45 | 44 |
46 private: | 45 private: |
47 void AnimateNow(); | 46 void AnimateNow(); |
48 | 47 |
49 // Borrowed pointers to other parts of Layout Tests state. | 48 // Borrowed pointers to other parts of Layout Tests state. |
50 TestRunner* test_runner_; | 49 TestRunner* test_runner_; |
51 WebTestProxyBase* web_test_proxy_base_; | 50 WebTestProxyBase* web_test_proxy_base_; |
52 | 51 |
53 bool animation_scheduled_; | 52 bool animation_scheduled_; |
54 | 53 |
55 base::WeakPtrFactory<WebWidgetTestClient> weak_factory_; | 54 base::WeakPtrFactory<WebWidgetTestClient> weak_factory_; |
56 | 55 |
57 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestClient); | 56 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestClient); |
58 }; | 57 }; |
59 | 58 |
60 } // namespace test_runner | 59 } // namespace test_runner |
61 | 60 |
62 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_CLIENT_H_ | 61 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_CLIENT_H_ |
OLD | NEW |