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

Side by Side Diff: cc/layer_tree_host.cc

Issue 11967015: Hide location bar on WebKit programmatic scroll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove some plumbing. Created 7 years, 9 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 | Annotate | Revision Log
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/layer_tree_host.h" 5 #include "cc/layer_tree_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 { 506 {
507 if (pageScaleFactor == m_pageScaleFactor && minPageScaleFactor == m_minPageS caleFactor && maxPageScaleFactor == m_maxPageScaleFactor) 507 if (pageScaleFactor == m_pageScaleFactor && minPageScaleFactor == m_minPageS caleFactor && maxPageScaleFactor == m_maxPageScaleFactor)
508 return; 508 return;
509 509
510 m_pageScaleFactor = pageScaleFactor; 510 m_pageScaleFactor = pageScaleFactor;
511 m_minPageScaleFactor = minPageScaleFactor; 511 m_minPageScaleFactor = minPageScaleFactor;
512 m_maxPageScaleFactor = maxPageScaleFactor; 512 m_maxPageScaleFactor = maxPageScaleFactor;
513 setNeedsCommit(); 513 setNeedsCommit();
514 } 514 }
515 515
516 void LayerTreeHost::hideTopControls()
517 {
518 m_proxy->implThread()->postTask(
John Knottenbelt 2013/03/11 17:23:06 Posting the task to the TopControlsManager in this
jamesr 2013/03/14 19:38:34 I believe it always will arrive before the Commit
519 base::Bind(&TopControlsManager::HideTopControls,
520 m_topControlsManagerWeakPtr));
521 }
522
516 void LayerTreeHost::setVisible(bool visible) 523 void LayerTreeHost::setVisible(bool visible)
517 { 524 {
518 if (m_visible == visible) 525 if (m_visible == visible)
519 return; 526 return;
520 m_visible = visible; 527 m_visible = visible;
521 m_proxy->setVisible(visible); 528 m_proxy->setVisible(visible);
522 } 529 }
523 530
524 void LayerTreeHost::startPageScaleAnimation(gfx::Vector2d targetOffset, bool use Anchor, float scale, base::TimeDelta duration) 531 void LayerTreeHost::startPageScaleAnimation(gfx::Vector2d targetOffset, bool use Anchor, float scale, base::TimeDelta duration)
525 { 532 {
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex) 900 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex)
894 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime); 901 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime);
895 } 902 }
896 903
897 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture() 904 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture()
898 { 905 {
899 return m_proxy->capturePicture(); 906 return m_proxy->capturePicture();
900 } 907 }
901 908
902 } // namespace cc 909 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_host.h ('k') | cc/top_controls_manager.h » ('j') | cc/top_controls_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698