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 "third_party/WebKit/public/web/WebViewClient.h" | 9 #include "third_party/WebKit/public/web/WebViewClient.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 class WebView; | 12 class WebView; |
13 } // namespace blink | 13 } // namespace blink |
14 | 14 |
15 namespace test_runner { | 15 namespace test_runner { |
16 | 16 |
17 class EventSender; | |
18 class TestRunner; | 17 class TestRunner; |
19 class WebTestDelegate; | 18 class WebTestDelegate; |
20 class WebViewTestProxyBase; | 19 class WebViewTestProxyBase; |
21 | 20 |
22 // WebViewTestClient implements WebViewClient interface, providing behavior | 21 // WebViewTestClient implements WebViewClient interface, providing behavior |
23 // expected by tests. WebViewTestClient ends up used by WebViewTestProxy | 22 // expected by tests. WebViewTestClient ends up used by WebViewTestProxy |
24 // which coordinates forwarding WebViewClient calls either to | 23 // which coordinates forwarding WebViewClient calls either to |
25 // WebViewTestClient or to the product code (i.e. to RenderViewImpl). | 24 // WebViewTestClient or to the product code (i.e. to RenderViewImpl). |
26 class WebViewTestClient : public blink::WebViewClient { | 25 class WebViewTestClient : public blink::WebViewClient { |
27 public: | 26 public: |
(...skipping 27 matching lines...) Expand all Loading... |
55 | 54 |
56 // Borrowed pointer to WebViewTestProxyBase. | 55 // Borrowed pointer to WebViewTestProxyBase. |
57 WebViewTestProxyBase* web_view_test_proxy_base_; | 56 WebViewTestProxyBase* web_view_test_proxy_base_; |
58 | 57 |
59 DISALLOW_COPY_AND_ASSIGN(WebViewTestClient); | 58 DISALLOW_COPY_AND_ASSIGN(WebViewTestClient); |
60 }; | 59 }; |
61 | 60 |
62 } // namespace test_runner | 61 } // namespace test_runner |
63 | 62 |
64 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ | 63 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ |
OLD | NEW |