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 20 matching lines...) Expand all Loading... |
31 WebTestProxyBase* web_test_proxy_base); | 31 WebTestProxyBase* web_test_proxy_base); |
32 | 32 |
33 virtual ~WebViewTestClient(); | 33 virtual ~WebViewTestClient(); |
34 | 34 |
35 // WebViewClient overrides needed by WebTestProxy. | 35 // WebViewClient overrides needed by WebTestProxy. |
36 void showValidationMessage(const blink::WebRect& anchor_in_root_view, | 36 void showValidationMessage(const blink::WebRect& anchor_in_root_view, |
37 const blink::WebString& main_message, | 37 const blink::WebString& main_message, |
38 blink::WebTextDirection main_message_hint, | 38 blink::WebTextDirection main_message_hint, |
39 const blink::WebString& sub_message, | 39 const blink::WebString& sub_message, |
40 blink::WebTextDirection sub_message_hint) override; | 40 blink::WebTextDirection sub_message_hint) override; |
41 bool runFileChooser(const blink::WebFileChooserParams& params, | |
42 blink::WebFileChooserCompletion* completion) override; | |
43 void startDragging(blink::WebLocalFrame* frame, | 41 void startDragging(blink::WebLocalFrame* frame, |
44 const blink::WebDragData& data, | 42 const blink::WebDragData& data, |
45 blink::WebDragOperationsMask mask, | 43 blink::WebDragOperationsMask mask, |
46 const blink::WebImage& image, | 44 const blink::WebImage& image, |
47 const blink::WebPoint& point) override; | 45 const blink::WebPoint& point) override; |
48 void didChangeContents() override; | 46 void didChangeContents() override; |
49 blink::WebView* createView(blink::WebLocalFrame* creator, | 47 blink::WebView* createView(blink::WebLocalFrame* creator, |
50 const blink::WebURLRequest& request, | 48 const blink::WebURLRequest& request, |
51 const blink::WebWindowFeatures& features, | 49 const blink::WebWindowFeatures& features, |
52 const blink::WebString& frame_name, | 50 const blink::WebString& frame_name, |
(...skipping 10 matching lines...) Expand all Loading... |
63 // Borrowed pointers to other parts of Layout Tests state. | 61 // Borrowed pointers to other parts of Layout Tests state. |
64 TestRunner* test_runner_; | 62 TestRunner* test_runner_; |
65 WebTestProxyBase* web_test_proxy_base_; | 63 WebTestProxyBase* web_test_proxy_base_; |
66 | 64 |
67 DISALLOW_COPY_AND_ASSIGN(WebViewTestClient); | 65 DISALLOW_COPY_AND_ASSIGN(WebViewTestClient); |
68 }; | 66 }; |
69 | 67 |
70 } // namespace test_runner | 68 } // namespace test_runner |
71 | 69 |
72 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ | 70 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_CLIENT_H_ |
OLD | NEW |