| 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 CONTENT_SHELL_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ |
| 6 #define CONTENT_SHELL_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ | 6 #define CONTENT_SHELL_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 24 matching lines...) Expand all Loading... |
| 35 blink::WebTextDirection main_message_hint, | 35 blink::WebTextDirection main_message_hint, |
| 36 const blink::WebString& sub_message, | 36 const blink::WebString& sub_message, |
| 37 blink::WebTextDirection sub_message_hint) override; | 37 blink::WebTextDirection sub_message_hint) override; |
| 38 void DidChangeContents() override; | 38 void DidChangeContents() override; |
| 39 blink::WebView* CreateView(blink::WebLocalFrame* creator, | 39 blink::WebView* CreateView(blink::WebLocalFrame* creator, |
| 40 const blink::WebURLRequest& request, | 40 const blink::WebURLRequest& request, |
| 41 const blink::WebWindowFeatures& features, | 41 const blink::WebWindowFeatures& features, |
| 42 const blink::WebString& frame_name, | 42 const blink::WebString& frame_name, |
| 43 blink::WebNavigationPolicy policy, | 43 blink::WebNavigationPolicy policy, |
| 44 bool suppress_opener) override; | 44 bool suppress_opener) override; |
| 45 void SetStatusText(const blink::WebString& text) override; | |
| 46 void PrintPage(blink::WebLocalFrame* frame) override; | 45 void PrintPage(blink::WebLocalFrame* frame) override; |
| 47 blink::WebSpeechRecognizer* SpeechRecognizer() override; | 46 blink::WebSpeechRecognizer* SpeechRecognizer() override; |
| 48 blink::WebString AcceptLanguages() override; | 47 blink::WebString AcceptLanguages() override; |
| 49 void DidFocus() override; | 48 void DidFocus() override; |
| 50 bool CanHandleGestureEvent() override; | 49 bool CanHandleGestureEvent() override; |
| 51 bool CanUpdateLayout() override; | 50 bool CanUpdateLayout() override; |
| 52 | 51 |
| 53 private: | 52 private: |
| 54 WebTestDelegate* delegate(); | 53 WebTestDelegate* delegate(); |
| 55 TestRunner* test_runner(); | 54 TestRunner* test_runner(); |
| 56 | 55 |
| 57 // Borrowed pointer to WebViewTestProxyBase. | 56 // Borrowed pointer to WebViewTestProxyBase. |
| 58 WebViewTestProxyBase* web_view_test_proxy_base_; | 57 WebViewTestProxyBase* web_view_test_proxy_base_; |
| 59 | 58 |
| 60 DISALLOW_COPY_AND_ASSIGN(WebViewTestClient); | 59 DISALLOW_COPY_AND_ASSIGN(WebViewTestClient); |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 } // namespace test_runner | 62 } // namespace test_runner |
| 64 | 63 |
| 65 #endif // CONTENT_SHELL_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ | 64 #endif // CONTENT_SHELL_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ |
| OLD | NEW |