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

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

Issue 2493293002: RenderWidget: make routing_id be a parameter of the ctor (Closed)
Patch Set: Tweak. 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 void RenderFrameImpl::PepperSelectionChanged( 1335 void RenderFrameImpl::PepperSelectionChanged(
1336 PepperPluginInstanceImpl* instance) { 1336 PepperPluginInstanceImpl* instance) {
1337 if (instance != focused_pepper_plugin_) 1337 if (instance != focused_pepper_plugin_)
1338 return; 1338 return;
1339 SyncSelectionIfRequired(); 1339 SyncSelectionIfRequired();
1340 } 1340 }
1341 1341
1342 RenderWidgetFullscreenPepper* RenderFrameImpl::CreatePepperFullscreenContainer( 1342 RenderWidgetFullscreenPepper* RenderFrameImpl::CreatePepperFullscreenContainer(
1343 PepperPluginInstanceImpl* plugin) { 1343 PepperPluginInstanceImpl* plugin) {
1344 GURL active_url; 1344 GURL active_url;
1345 if (render_view_->webview()) 1345 if (render_view()->webview())
1346 active_url = render_view()->GetURLForGraphicsContext3D(); 1346 active_url = render_view()->GetURLForGraphicsContext3D();
1347
1348 // Synchronous IPC to obtain a routing id for the fullscreen widget.
1349 int32_t fullscreen_widget_routing_id = MSG_ROUTING_NONE;
1350 if (!RenderThreadImpl::current_render_message_filter()
1351 ->CreateFullscreenWidget(render_view()->routing_id(),
1352 &fullscreen_widget_routing_id)) {
1353 return nullptr;
1354 }
1355
1347 RenderWidgetFullscreenPepper* widget = RenderWidgetFullscreenPepper::Create( 1356 RenderWidgetFullscreenPepper* widget = RenderWidgetFullscreenPepper::Create(
1348 render_view()->routing_id(), GetRenderWidget()->compositor_deps(), 1357 fullscreen_widget_routing_id, render_view()->routing_id(),
1349 plugin, active_url, GetRenderWidget()->screen_info()); 1358 GetRenderWidget()->compositor_deps(), plugin, active_url,
1359 GetRenderWidget()->screen_info());
1350 widget->show(blink::WebNavigationPolicyIgnore); 1360 widget->show(blink::WebNavigationPolicyIgnore);
1351 return widget; 1361 return widget;
1352 } 1362 }
1353 1363
1354 bool RenderFrameImpl::IsPepperAcceptingCompositionEvents() const { 1364 bool RenderFrameImpl::IsPepperAcceptingCompositionEvents() const {
1355 if (!focused_pepper_plugin_) 1365 if (!focused_pepper_plugin_)
1356 return false; 1366 return false;
1357 return focused_pepper_plugin_->IsPluginAcceptingCompositionEvents(); 1367 return focused_pepper_plugin_->IsPluginAcceptingCompositionEvents();
1358 } 1368 }
1359 1369
(...skipping 5253 matching lines...) Expand 10 before | Expand all | Expand 10 after
6613 // event target. Potentially a Pepper plugin will receive the event. 6623 // event target. Potentially a Pepper plugin will receive the event.
6614 // In order to tell whether a plugin gets the last mouse event and which it 6624 // In order to tell whether a plugin gets the last mouse event and which it
6615 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6625 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6616 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6626 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6617 // |pepper_last_mouse_event_target_|. 6627 // |pepper_last_mouse_event_target_|.
6618 pepper_last_mouse_event_target_ = nullptr; 6628 pepper_last_mouse_event_target_ = nullptr;
6619 #endif 6629 #endif
6620 } 6630 }
6621 6631
6622 } // namespace content 6632 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698