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

Side by Side Diff: components/test_runner/web_frame_test_proxy.h

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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FRAME_TEST_PROXY_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 const blink::WebSecurityOrigin& security_origin, 284 const blink::WebSecurityOrigin& security_origin,
285 blink::WebSetSinkIdCallbacks* web_callbacks) override { 285 blink::WebSetSinkIdCallbacks* web_callbacks) override {
286 test_client()->checkIfAudioSinkExistsAndIsAuthorized( 286 test_client()->checkIfAudioSinkExistsAndIsAuthorized(
287 sink_id, security_origin, web_callbacks); 287 sink_id, security_origin, web_callbacks);
288 } 288 }
289 289
290 void didClearWindowObject(blink::WebLocalFrame* frame) override { 290 void didClearWindowObject(blink::WebLocalFrame* frame) override {
291 test_client()->didClearWindowObject(frame); 291 test_client()->didClearWindowObject(frame);
292 Base::didClearWindowObject(frame); 292 Base::didClearWindowObject(frame);
293 } 293 }
294 bool runFileChooser(const blink::WebFileChooserParams& params,
295 blink::WebFileChooserCompletion* completion) override {
296 return test_client()->runFileChooser(params, completion);
297 }
294 298
295 private: 299 private:
296 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); 300 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy);
297 }; 301 };
298 302
299 } // namespace test_runner 303 } // namespace test_runner
300 304
301 #endif // COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ 305 #endif // COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698