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

Side by Side Diff: cc/layer.cc

Issue 11550035: Implement pinch-zoom scaling for main-frame scrollbars and pinch-zoom overlay scrollbars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix collision with solid colour scrollbars patch. 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
« no previous file with comments | « cc/layer.h ('k') | cc/layer_tree_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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.h" 5 #include "cc/layer.h"
6 6
7 #include "cc/animation.h" 7 #include "cc/animation.h"
8 #include "cc/animation_events.h" 8 #include "cc/animation_events.h"
9 #include "cc/layer_animation_controller.h" 9 #include "cc/layer_animation_controller.h"
10 #include "cc/layer_impl.h" 10 #include "cc/layer_impl.h"
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 if (opacity_ == opacity) 389 if (opacity_ == opacity)
390 return; 390 return;
391 opacity_ = opacity; 391 opacity_ = opacity;
392 SetNeedsCommit(); 392 SetNeedsCommit();
393 } 393 }
394 394
395 bool Layer::OpacityIsAnimating() const { 395 bool Layer::OpacityIsAnimating() const {
396 return layer_animation_controller_->IsAnimatingProperty(Animation::Opacity); 396 return layer_animation_controller_->IsAnimatingProperty(Animation::Opacity);
397 } 397 }
398 398
399 bool Layer::OpacityCanAnimateOnImplThread() const {
400 return false;
401 }
402
399 void Layer::SetContentsOpaque(bool opaque) { 403 void Layer::SetContentsOpaque(bool opaque) {
400 if (contents_opaque_ == opaque) 404 if (contents_opaque_ == opaque)
401 return; 405 return;
402 contents_opaque_ = opaque; 406 contents_opaque_ = opaque;
403 SetNeedsCommit(); 407 SetNeedsCommit();
404 } 408 }
405 409
406 void Layer::SetPosition(gfx::PointF position) { 410 void Layer::SetPosition(gfx::PointF position) {
407 if (position_ == position) 411 if (position_ == position)
408 return; 412 return;
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 if (contents_opaque()) 808 if (contents_opaque())
805 return visible_content_rect(); 809 return visible_content_rect();
806 return Region(); 810 return Region();
807 } 811 }
808 812
809 ScrollbarLayer* Layer::ToScrollbarLayer() { 813 ScrollbarLayer* Layer::ToScrollbarLayer() {
810 return NULL; 814 return NULL;
811 } 815 }
812 816
813 } // namespace cc 817 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer.h ('k') | cc/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698