| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/public/test/mock_render_thread.h" | 5 #include "content/public/test/mock_render_thread.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 NOTREACHED(); | 62 NOTREACHED(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool CreateNewWidget(int32_t opener_id, | 65 bool CreateNewWidget(int32_t opener_id, |
| 66 blink::WebPopupType popup_type, | 66 blink::WebPopupType popup_type, |
| 67 int32_t* route_id) override { | 67 int32_t* route_id) override { |
| 68 thread_->OnCreateWidget(opener_id, popup_type, route_id); | 68 thread_->OnCreateWidget(opener_id, popup_type, route_id); |
| 69 return true; | 69 return true; |
| 70 } | 70 } |
| 71 | 71 |
| 72 void CreateFullscreenWidget( |
| 73 int opener_id, |
| 74 const CreateFullscreenWidgetCallback& callback) override { |
| 75 NOTREACHED(); |
| 76 } |
| 77 |
| 72 private: | 78 private: |
| 73 MockRenderThread* const thread_; | 79 MockRenderThread* const thread_; |
| 74 }; | 80 }; |
| 75 | 81 |
| 76 } // namespace | 82 } // namespace |
| 77 | 83 |
| 78 MockRenderThread::MockRenderThread() | 84 MockRenderThread::MockRenderThread() |
| 79 : routing_id_(0), | 85 : routing_id_(0), |
| 80 opener_id_(0), | 86 opener_id_(0), |
| 81 new_window_routing_id_(0), | 87 new_window_routing_id_(0), |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 void MockRenderThread::OnCreateWindow( | 321 void MockRenderThread::OnCreateWindow( |
| 316 const mojom::CreateNewWindowParams& params, | 322 const mojom::CreateNewWindowParams& params, |
| 317 mojom::CreateNewWindowReply* reply) { | 323 mojom::CreateNewWindowReply* reply) { |
| 318 reply->route_id = new_window_routing_id_; | 324 reply->route_id = new_window_routing_id_; |
| 319 reply->main_frame_route_id = new_window_main_frame_routing_id_; | 325 reply->main_frame_route_id = new_window_main_frame_routing_id_; |
| 320 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_; | 326 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_; |
| 321 reply->cloned_session_storage_namespace_id = 0; | 327 reply->cloned_session_storage_namespace_id = 0; |
| 322 } | 328 } |
| 323 | 329 |
| 324 } // namespace content | 330 } // namespace content |
| OLD | NEW |