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

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

Issue 2242613003: Hoist SetNeedsBeginFrame messages up to the RWHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove base class call Created 4 years, 4 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 "content/browser/frame_host/render_widget_host_view_guest.h" 5 #include "content/browser/frame_host/render_widget_host_view_guest.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 } 243 }
244 244
245 gfx::Size RenderWidgetHostViewGuest::GetPhysicalBackingSize() const { 245 gfx::Size RenderWidgetHostViewGuest::GetPhysicalBackingSize() const {
246 return RenderWidgetHostViewBase::GetPhysicalBackingSize(); 246 return RenderWidgetHostViewBase::GetPhysicalBackingSize();
247 } 247 }
248 248
249 base::string16 RenderWidgetHostViewGuest::GetSelectedText() { 249 base::string16 RenderWidgetHostViewGuest::GetSelectedText() {
250 return platform_view_->GetSelectedText(); 250 return platform_view_->GetSelectedText();
251 } 251 }
252 252
253 void RenderWidgetHostViewGuest::SetNeedsBeginFrames(
254 bool needs_begin_frames) {
255 if (platform_view_)
256 platform_view_->SetNeedsBeginFrames(needs_begin_frames);
257 }
258
253 void RenderWidgetHostViewGuest::SetTooltipText( 259 void RenderWidgetHostViewGuest::SetTooltipText(
254 const base::string16& tooltip_text) { 260 const base::string16& tooltip_text) {
255 if (guest_) 261 if (guest_)
256 guest_->SetTooltipText(tooltip_text); 262 guest_->SetTooltipText(tooltip_text);
257 } 263 }
258 264
259 void RenderWidgetHostViewGuest::OnSwapCompositorFrame( 265 void RenderWidgetHostViewGuest::OnSwapCompositorFrame(
260 uint32_t output_surface_id, 266 uint32_t output_surface_id,
261 cc::CompositorFrame frame) { 267 cc::CompositorFrame frame) {
262 TRACE_EVENT0("content", "RenderWidgetHostViewGuest::OnSwapCompositorFrame"); 268 TRACE_EVENT0("content", "RenderWidgetHostViewGuest::OnSwapCompositorFrame");
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 gesture_event.data.scrollUpdate.inertialPhase == 665 gesture_event.data.scrollUpdate.inertialPhase ==
660 blink::WebGestureEvent::MomentumPhase) { 666 blink::WebGestureEvent::MomentumPhase) {
661 return; 667 return;
662 } 668 }
663 host_->ForwardGestureEvent(gesture_event); 669 host_->ForwardGestureEvent(gesture_event);
664 return; 670 return;
665 } 671 }
666 } 672 }
667 673
668 } // namespace content 674 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698