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

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

Issue 2479663002: Move compositor InputHandler from RenderViewImpl to RenderWidget. (Closed)
Patch Set: Check for layerTreeView while setting handlers. Created 3 years, 11 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 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 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 if (render_view()->webview()) 1344 if (render_view()->webview())
1345 active_url = render_view()->GetURLForGraphicsContext3D(); 1345 active_url = render_view()->GetURLForGraphicsContext3D();
1346 1346
1347 // Synchronous IPC to obtain a routing id for the fullscreen widget. 1347 // Synchronous IPC to obtain a routing id for the fullscreen widget.
1348 int32_t fullscreen_widget_routing_id = MSG_ROUTING_NONE; 1348 int32_t fullscreen_widget_routing_id = MSG_ROUTING_NONE;
1349 if (!RenderThreadImpl::current_render_message_filter() 1349 if (!RenderThreadImpl::current_render_message_filter()
1350 ->CreateFullscreenWidget(render_view()->routing_id(), 1350 ->CreateFullscreenWidget(render_view()->routing_id(),
1351 &fullscreen_widget_routing_id)) { 1351 &fullscreen_widget_routing_id)) {
1352 return nullptr; 1352 return nullptr;
1353 } 1353 }
1354 RenderWidget::ShowCallback show_callback = base::Bind( 1354 RenderWidget::ShowCallback show_callback =
1355 &RenderViewImpl::ShowCreatedFullscreenWidget, render_view()->AsWeakPtr()); 1355 base::Bind(&RenderViewImpl::ShowCreatedFullscreenWidget,
1356 render_view()->GetWeakPtr());
1356 1357
1357 RenderWidgetFullscreenPepper* widget = RenderWidgetFullscreenPepper::Create( 1358 RenderWidgetFullscreenPepper* widget = RenderWidgetFullscreenPepper::Create(
1358 fullscreen_widget_routing_id, show_callback, 1359 fullscreen_widget_routing_id, show_callback,
1359 GetRenderWidget()->compositor_deps(), plugin, active_url, 1360 GetRenderWidget()->compositor_deps(), plugin, active_url,
1360 GetRenderWidget()->screen_info()); 1361 GetRenderWidget()->screen_info());
1361 // TODO(nick): The show() handshake seems like unnecessary complexity here, 1362 // TODO(nick): The show() handshake seems like unnecessary complexity here,
1362 // since there's no real delay between CreateFullscreenWidget and 1363 // since there's no real delay between CreateFullscreenWidget and
1363 // ShowCreatedFullscreenWidget. Would it be simpler to have the 1364 // ShowCreatedFullscreenWidget. Would it be simpler to have the
1364 // CreateFullscreenWidget mojo method implicitly show the window, and skip the 1365 // CreateFullscreenWidget mojo method implicitly show the window, and skip the
1365 // subsequent step? 1366 // subsequent step?
(...skipping 5429 matching lines...) Expand 10 before | Expand all | Expand 10 after
6795 // event target. Potentially a Pepper plugin will receive the event. 6796 // event target. Potentially a Pepper plugin will receive the event.
6796 // In order to tell whether a plugin gets the last mouse event and which it 6797 // In order to tell whether a plugin gets the last mouse event and which it
6797 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6798 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6798 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6799 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6799 // |pepper_last_mouse_event_target_|. 6800 // |pepper_last_mouse_event_target_|.
6800 pepper_last_mouse_event_target_ = nullptr; 6801 pepper_last_mouse_event_target_ = nullptr;
6801 #endif 6802 #endif
6802 } 6803 }
6803 6804
6804 } // namespace content 6805 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698