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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_guest.cc

Issue 1094113003: Allow out-of-process iframes to render to compositing surfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed one Created 5 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/bind_helpers.h" 5 #include "base/bind_helpers.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "content/browser/browser_plugin/browser_plugin_guest.h" 9 #include "content/browser/browser_plugin/browser_plugin_guest.h"
10 #include "content/browser/frame_host/render_widget_host_view_guest.h" 10 #include "content/browser/frame_host/render_widget_host_view_guest.h"
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 } 382 }
383 383
384 void RenderWidgetHostViewGuest::GetScreenInfo(blink::WebScreenInfo* results) { 384 void RenderWidgetHostViewGuest::GetScreenInfo(blink::WebScreenInfo* results) {
385 if (!guest_) 385 if (!guest_)
386 return; 386 return;
387 RenderWidgetHostViewBase* embedder_view = GetOwnerRenderWidgetHostView(); 387 RenderWidgetHostViewBase* embedder_view = GetOwnerRenderWidgetHostView();
388 if (embedder_view) 388 if (embedder_view)
389 embedder_view->GetScreenInfo(results); 389 embedder_view->GetScreenInfo(results);
390 } 390 }
391 391
392 uint32_t RenderWidgetHostViewGuest::GetSurfaceIdNamespace() {
393 // Compositing surfaces not supported.
394 return 0;
395 }
396
392 #if defined(OS_MACOSX) 397 #if defined(OS_MACOSX)
393 void RenderWidgetHostViewGuest::SetActive(bool active) { 398 void RenderWidgetHostViewGuest::SetActive(bool active) {
394 platform_view_->SetActive(active); 399 platform_view_->SetActive(active);
395 } 400 }
396 401
397 void RenderWidgetHostViewGuest::SetWindowVisibility(bool visible) { 402 void RenderWidgetHostViewGuest::SetWindowVisibility(bool visible) {
398 platform_view_->SetWindowVisibility(visible); 403 platform_view_->SetWindowVisibility(visible);
399 } 404 }
400 405
401 void RenderWidgetHostViewGuest::WindowFrameChanged() { 406 void RenderWidgetHostViewGuest::WindowFrameChanged() {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 } 596 }
592 597
593 if (blink::WebInputEvent::isGestureEventType(event->type)) { 598 if (blink::WebInputEvent::isGestureEventType(event->type)) {
594 host_->ForwardGestureEvent( 599 host_->ForwardGestureEvent(
595 *static_cast<const blink::WebGestureEvent*>(event)); 600 *static_cast<const blink::WebGestureEvent*>(event));
596 return; 601 return;
597 } 602 }
598 } 603 }
599 604
600 } // namespace content 605 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698