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 #include "components/test_runner/web_frame_test_client.h" | 5 #include "components/test_runner/web_frame_test_client.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 callback->onError(blink::WebSetSinkIdError::NotAuthorized); | 745 callback->onError(blink::WebSetSinkIdError::NotAuthorized); |
746 else | 746 else |
747 callback->onError(blink::WebSetSinkIdError::NotFound); | 747 callback->onError(blink::WebSetSinkIdError::NotFound); |
748 } | 748 } |
749 | 749 |
750 void WebFrameTestClient::didClearWindowObject(blink::WebLocalFrame* frame) { | 750 void WebFrameTestClient::didClearWindowObject(blink::WebLocalFrame* frame) { |
751 web_test_proxy_base_->test_interfaces()->BindTo(frame); | 751 web_test_proxy_base_->test_interfaces()->BindTo(frame); |
752 web_test_proxy_base_->BindTo(frame); | 752 web_test_proxy_base_->BindTo(frame); |
753 } | 753 } |
754 | 754 |
| 755 bool WebFrameTestClient::runFileChooser( |
| 756 const blink::WebFileChooserParams& params, |
| 757 blink::WebFileChooserCompletion* completion) { |
| 758 delegate_->PrintMessage("Mock: Opening a file chooser.\n"); |
| 759 // FIXME: Add ability to set file names to a file upload control. |
| 760 return false; |
| 761 } |
| 762 |
755 } // namespace test_runner | 763 } // namespace test_runner |
OLD | NEW |