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

Side by Side Diff: cc/trees/layer_tree_host.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, 7 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <stack> 8 #include <stack>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 rendering_stats_instrumentation_.get()); 400 rendering_stats_instrumentation_.get());
401 if (settings_.calculate_top_controls_position && 401 if (settings_.calculate_top_controls_position &&
402 host_impl->top_controls_manager()) { 402 host_impl->top_controls_manager()) {
403 top_controls_manager_weak_ptr_ = 403 top_controls_manager_weak_ptr_ =
404 host_impl->top_controls_manager()->AsWeakPtr(); 404 host_impl->top_controls_manager()->AsWeakPtr();
405 } 405 }
406 input_handler_weak_ptr_ = host_impl->AsWeakPtr(); 406 input_handler_weak_ptr_ = host_impl->AsWeakPtr();
407 return host_impl.Pass(); 407 return host_impl.Pass();
408 } 408 }
409 409
410 void LayerTreeHost::ShowTopControls(bool show) {
Ted C 2013/06/03 17:43:42 Same thing about moving this next to the other met
Jinsuk Kim 2013/06/05 08:21:07 Done.
411 proxy_->ImplThread()->PostTask(
Ted C 2013/06/03 17:43:42 Similar to the other method, I would add this to t
Jinsuk Kim 2013/06/05 08:21:07 Done.
412 base::Bind(
413 &TopControlsManager::UpdateTopControlsStatePreservingConstraints,
414 top_controls_manager_weak_ptr_,
415 show ? cc::SHOWN : cc::HIDDEN,
416 true));
417 }
418
410 void LayerTreeHost::DidLoseOutputSurface() { 419 void LayerTreeHost::DidLoseOutputSurface() {
411 TRACE_EVENT0("cc", "LayerTreeHost::DidLoseOutputSurface"); 420 TRACE_EVENT0("cc", "LayerTreeHost::DidLoseOutputSurface");
412 DCHECK(proxy_->IsMainThread()); 421 DCHECK(proxy_->IsMainThread());
413 422
414 if (output_surface_lost_) 423 if (output_surface_lost_)
415 return; 424 return;
416 425
417 num_failed_recreate_attempts_ = 0; 426 num_failed_recreate_attempts_ = 0;
418 output_surface_lost_ = true; 427 output_surface_lost_ = true;
419 SetNeedsCommit(); 428 SetNeedsCommit();
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 bool start_ready_animations = true; 1026 bool start_ready_animations = true;
1018 (*iter).second->UpdateState(start_ready_animations, NULL); 1027 (*iter).second->UpdateState(start_ready_animations, NULL);
1019 } 1028 }
1020 } 1029 }
1021 1030
1022 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { 1031 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() {
1023 return proxy_->CapturePicture(); 1032 return proxy_->CapturePicture();
1024 } 1033 }
1025 1034
1026 } // namespace cc 1035 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698