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

Side by Side Diff: cc/layers/layer_unittest.cc

Issue 30793002: cc: Do not allow gesture-scrolling 'overflow[-{x|y}]:hidden' layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: needs-commit Created 7 years, 2 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/layers/layer_impl_unittest.cc ('k') | cc/trees/layer_tree_host_impl.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 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/layers/layer.h" 5 #include "cc/layers/layer.h"
6 6
7 #include "cc/animation/keyframed_animation_curve.h" 7 #include "cc/animation/keyframed_animation_curve.h"
8 #include "cc/base/math_util.h" 8 #include "cc/base/math_util.h"
9 #include "cc/layers/layer_impl.h" 9 #include "cc/layers/layer_impl.h"
10 #include "cc/resources/layer_painter.h" 10 #include "cc/resources/layer_painter.h"
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 gfx::PointF(1.23f, 4.56f))); 543 gfx::PointF(1.23f, 4.56f)));
544 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetAnchorPointZ(0.7f)); 544 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetAnchorPointZ(0.7f));
545 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetBackgroundColor(SK_ColorLTGRAY)); 545 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetBackgroundColor(SK_ColorLTGRAY));
546 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetMasksToBounds(true)); 546 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetMasksToBounds(true));
547 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetOpacity(0.5f)); 547 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetOpacity(0.5f));
548 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetContentsOpaque(true)); 548 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetContentsOpaque(true));
549 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetPosition(gfx::PointF(4.f, 9.f))); 549 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetPosition(gfx::PointF(4.f, 9.f)));
550 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetSublayerTransform( 550 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetSublayerTransform(
551 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0))); 551 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0)));
552 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollable(true)); 552 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollable(true));
553 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetUserScrollable(true, false));
553 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollOffset( 554 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollOffset(
554 gfx::Vector2d(10, 10))); 555 gfx::Vector2d(10, 10)));
555 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetShouldScrollOnMainThread(true)); 556 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetShouldScrollOnMainThread(true));
556 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion( 557 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion(
557 Region(gfx::Rect(1, 1, 2, 2)))); 558 Region(gfx::Rect(1, 1, 2, 2))));
558 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true)); 559 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true));
559 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform( 560 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform(
560 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0))); 561 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0)));
561 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false)); 562 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false));
562 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTouchEventHandlerRegion( 563 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTouchEventHandlerRegion(
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 << "Flags: " << contents_opaque << ", " << layer_opaque << ", " 1066 << "Flags: " << contents_opaque << ", " << layer_opaque << ", "
1066 << host_opaque << "\n"; 1067 << host_opaque << "\n";
1067 } 1068 }
1068 } 1069 }
1069 } 1070 }
1070 } 1071 }
1071 } 1072 }
1072 1073
1073 } // namespace 1074 } // namespace
1074 } // namespace cc 1075 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698