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 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 blink::WebView* createView(blink::WebLocalFrame* creator, | 47 blink::WebView* createView(blink::WebLocalFrame* creator, |
48 const blink::WebURLRequest& request, | 48 const blink::WebURLRequest& request, |
49 const blink::WebWindowFeatures& features, | 49 const blink::WebWindowFeatures& features, |
50 const blink::WebString& frame_name, | 50 const blink::WebString& frame_name, |
51 blink::WebNavigationPolicy policy, | 51 blink::WebNavigationPolicy policy, |
52 bool suppress_opener) override; | 52 bool suppress_opener) override; |
53 void setStatusText(const blink::WebString& text) override; | 53 void setStatusText(const blink::WebString& text) override; |
54 void printPage(blink::WebLocalFrame* frame) override; | 54 void printPage(blink::WebLocalFrame* frame) override; |
55 blink::WebSpeechRecognizer* speechRecognizer() override; | 55 blink::WebSpeechRecognizer* speechRecognizer() override; |
56 blink::WebString acceptLanguages() override; | 56 blink::WebString acceptLanguages() override; |
| 57 void didFocus() override; |
57 | 58 |
58 private: | 59 private: |
59 WebTestDelegate* delegate(); | 60 WebTestDelegate* delegate(); |
60 | 61 |
61 // Borrowed pointers to other parts of Layout Tests state. | 62 // Borrowed pointers to other parts of Layout Tests state. |
62 TestRunner* test_runner_; | 63 TestRunner* test_runner_; |
63 WebTestProxyBase* web_test_proxy_base_; | 64 WebTestProxyBase* web_test_proxy_base_; |
64 | 65 |
65 DISALLOW_COPY_AND_ASSIGN(WebViewTestClient); | 66 DISALLOW_COPY_AND_ASSIGN(WebViewTestClient); |
66 }; | 67 }; |
67 | 68 |
68 } // namespace test_runner | 69 } // namespace test_runner |
69 | 70 |
70 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ | 71 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ |
OLD | NEW |