Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: components/test_runner/web_frame_test_client.cc

Issue 2050623005: Move file chooser from RenderView(Host) to RenderFrame(Host). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some cleanup. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698