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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2450353004: Move ViewHostMsg_CreateWidget to mojom (Closed)
Patch Set: Addressed @tsepez's comment 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/public/test/mock_render_thread.cc ('k') | content/renderer/render_widget.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/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 WebFrame* opener_frame = RenderFrameImpl::ResolveOpener( 707 WebFrame* opener_frame = RenderFrameImpl::ResolveOpener(
708 params.opener_frame_route_id, &opener_view_routing_id); 708 params.opener_frame_route_id, &opener_view_routing_id);
709 if (opener_view_routing_id != MSG_ROUTING_NONE && was_created_by_renderer) 709 if (opener_view_routing_id != MSG_ROUTING_NONE && was_created_by_renderer)
710 opener_id_ = opener_view_routing_id; 710 opener_id_ = opener_view_routing_id;
711 711
712 display_mode_ = params.initial_size.display_mode; 712 display_mode_ = params.initial_size.display_mode;
713 713
714 webview_ = 714 webview_ =
715 WebView::create(this, is_hidden() ? blink::WebPageVisibilityStateHidden 715 WebView::create(this, is_hidden() ? blink::WebPageVisibilityStateHidden
716 : blink::WebPageVisibilityStateVisible); 716 : blink::WebPageVisibilityStateVisible);
717 RenderWidget::DoInit(MSG_ROUTING_NONE, webview_->widget(), nullptr); 717 RenderWidget::DoInit(MSG_ROUTING_NONE, webview_->widget(),
718 CreateWidgetCallback());
718 719
719 g_view_map.Get().insert(std::make_pair(webview(), this)); 720 g_view_map.Get().insert(std::make_pair(webview(), this));
720 g_routing_id_view_map.Get().insert(std::make_pair(GetRoutingID(), this)); 721 g_routing_id_view_map.Get().insert(std::make_pair(GetRoutingID(), this));
721 722
722 const base::CommandLine& command_line = 723 const base::CommandLine& command_line =
723 *base::CommandLine::ForCurrentProcess(); 724 *base::CommandLine::ForCurrentProcess();
724 725
725 if (command_line.HasSwitch(switches::kStatsCollectionController)) 726 if (command_line.HasSwitch(switches::kStatsCollectionController))
726 stats_collection_observer_.reset(new StatsCollectionObserver(this)); 727 stats_collection_observer_.reset(new StatsCollectionObserver(this));
727 728
(...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after
3039 NotifyInputEventHandled(input_event->type, 3040 NotifyInputEventHandled(input_event->type,
3040 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); 3041 INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
3041 } 3042 }
3042 3043
3043 std::unique_ptr<InputEventAck> ack( 3044 std::unique_ptr<InputEventAck> ack(
3044 new InputEventAck(input_event->type, INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); 3045 new InputEventAck(input_event->type, INPUT_EVENT_ACK_STATE_NOT_CONSUMED));
3045 OnInputEventAck(std::move(ack)); 3046 OnInputEventAck(std::move(ack));
3046 } 3047 }
3047 3048
3048 } // namespace content 3049 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_thread.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698