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

Side by Side Diff: content/public/test/mock_render_thread.cc

Issue 2472733002: Move ViewHostMsg_CreateFullscreenWidget to mojom. (Closed)
Patch Set: Move ViewHostMsg_CreateFullscreenWidget to mojom. Created 4 years, 1 month 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_widget_fullscreen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_widget_fullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698