| 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_FRAME_TEST_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_TEST_RUNNER_WEB_FRAME_TEST_CLIENT_H_ |
| 6 #define CONTENT_SHELL_TEST_RUNNER_WEB_FRAME_TEST_CLIENT_H_ | 6 #define CONTENT_SHELL_TEST_RUNNER_WEB_FRAME_TEST_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 public: | 26 public: |
| 27 // Caller has to ensure that all arguments (|delegate|, | 27 // Caller has to ensure that all arguments (|delegate|, |
| 28 // |web_view_test_proxy_base_| and so forth) live longer than |this|. | 28 // |web_view_test_proxy_base_| and so forth) live longer than |this|. |
| 29 WebFrameTestClient(WebTestDelegate* delegate, | 29 WebFrameTestClient(WebTestDelegate* delegate, |
| 30 WebViewTestProxyBase* web_view_test_proxy_base, | 30 WebViewTestProxyBase* web_view_test_proxy_base, |
| 31 WebFrameTestProxyBase* web_frame_test_proxy_base); | 31 WebFrameTestProxyBase* web_frame_test_proxy_base); |
| 32 | 32 |
| 33 ~WebFrameTestClient() override; | 33 ~WebFrameTestClient() override; |
| 34 | 34 |
| 35 // WebFrameClient overrides needed by WebFrameTestProxy. | 35 // WebFrameClient overrides needed by WebFrameTestProxy. |
| 36 void FrameDetached(blink::WebLocalFrame*, DetachType) override; |
| 36 blink::WebColorChooser* CreateColorChooser( | 37 blink::WebColorChooser* CreateColorChooser( |
| 37 blink::WebColorChooserClient* client, | 38 blink::WebColorChooserClient* client, |
| 38 const blink::WebColor& initial_color, | 39 const blink::WebColor& initial_color, |
| 39 const blink::WebVector<blink::WebColorSuggestion>& suggestions) override; | 40 const blink::WebVector<blink::WebColorSuggestion>& suggestions) override; |
| 40 void RunModalAlertDialog(const blink::WebString& message) override; | 41 void RunModalAlertDialog(const blink::WebString& message) override; |
| 41 bool RunModalConfirmDialog(const blink::WebString& message) override; | 42 bool RunModalConfirmDialog(const blink::WebString& message) override; |
| 42 bool RunModalPromptDialog(const blink::WebString& message, | 43 bool RunModalPromptDialog(const blink::WebString& message, |
| 43 const blink::WebString& default_value, | 44 const blink::WebString& default_value, |
| 44 blink::WebString* actual_value) override; | 45 blink::WebString* actual_value) override; |
| 45 bool RunModalBeforeUnloadDialog(bool is_reload) override; | 46 bool RunModalBeforeUnloadDialog(bool is_reload) override; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 WebTestDelegate* delegate_; | 105 WebTestDelegate* delegate_; |
| 105 WebViewTestProxyBase* web_view_test_proxy_base_; | 106 WebViewTestProxyBase* web_view_test_proxy_base_; |
| 106 WebFrameTestProxyBase* web_frame_test_proxy_base_; | 107 WebFrameTestProxyBase* web_frame_test_proxy_base_; |
| 107 | 108 |
| 108 DISALLOW_COPY_AND_ASSIGN(WebFrameTestClient); | 109 DISALLOW_COPY_AND_ASSIGN(WebFrameTestClient); |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 } // namespace test_runner | 112 } // namespace test_runner |
| 112 | 113 |
| 113 #endif // CONTENT_SHELL_TEST_RUNNER_WEB_FRAME_TEST_CLIENT_H_ | 114 #endif // CONTENT_SHELL_TEST_RUNNER_WEB_FRAME_TEST_CLIENT_H_ |
| OLD | NEW |