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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 14999010: Allows fullscreen to be triggered with the key events used for scrolling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 7 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 340
341 void RenderWidgetCompositor::UpdateTopControlsState( 341 void RenderWidgetCompositor::UpdateTopControlsState(
342 cc::TopControlsState constraints, 342 cc::TopControlsState constraints,
343 cc::TopControlsState current, 343 cc::TopControlsState current,
344 bool animate) { 344 bool animate) {
345 layer_tree_host_->UpdateTopControlsState(constraints, 345 layer_tree_host_->UpdateTopControlsState(constraints,
346 current, 346 current,
347 animate); 347 animate);
348 } 348 }
349 349
350 void RenderWidgetCompositor::UpdateTopControlsStatePreservingConstraints(
351 cc::TopControlsState current,
352 bool animate) {
353 layer_tree_host_->UpdateTopControlsStatePreservingConstraints(current,
354 animate);
355 }
356
350 void RenderWidgetCompositor::SetOverdrawBottomHeight( 357 void RenderWidgetCompositor::SetOverdrawBottomHeight(
351 float overdraw_bottom_height) { 358 float overdraw_bottom_height) {
352 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); 359 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height);
353 } 360 }
354 361
355 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { 362 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) {
356 layer_tree_host_->SetNeedsRedrawRect(damage_rect); 363 layer_tree_host_->SetNeedsRedrawRect(damage_rect);
357 } 364 }
358 365
359 void RenderWidgetCompositor::SetLatencyInfo( 366 void RenderWidgetCompositor::SetLatencyInfo(
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); 576 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread();
570 } 577 }
571 578
572 scoped_refptr<cc::ContextProvider> 579 scoped_refptr<cc::ContextProvider>
573 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { 580 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() {
574 return RenderThreadImpl::current()-> 581 return RenderThreadImpl::current()->
575 OffscreenContextProviderForCompositorThread(); 582 OffscreenContextProviderForCompositorThread();
576 } 583 }
577 584
578 } // namespace content 585 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698