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

Side by Side Diff: cc/trees/layer_tree_host_unittest_context.cc

Issue 12927003: cc: Chromify FakeWebScrollbarThemeGeometry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/test/fake_web_scrollbar_theme_geometry.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "cc/layers/content_layer.h" 8 #include "cc/layers/content_layer.h"
9 #include "cc/layers/heads_up_display_layer.h" 9 #include "cc/layers/heads_up_display_layer.h"
10 #include "cc/layers/io_surface_layer.h" 10 #include "cc/layers/io_surface_layer.h"
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 LayerTreeDebugState debug_state; 966 LayerTreeDebugState debug_state;
967 debug_state.show_property_changed_rects = true; 967 debug_state.show_property_changed_rects = true;
968 layer_tree_host()->SetDebugState(debug_state); 968 layer_tree_host()->SetDebugState(debug_state);
969 969
970 bool paint_scrollbar = true; 970 bool paint_scrollbar = true;
971 bool has_thumb = true; 971 bool has_thumb = true;
972 scoped_refptr<ScrollbarLayer> scrollbar_ = ScrollbarLayer::Create( 972 scoped_refptr<ScrollbarLayer> scrollbar_ = ScrollbarLayer::Create(
973 FakeWebScrollbar::Create().PassAs<WebKit::WebScrollbar>(), 973 FakeWebScrollbar::Create().PassAs<WebKit::WebScrollbar>(),
974 FakeScrollbarThemePainter::Create(paint_scrollbar) 974 FakeScrollbarThemePainter::Create(paint_scrollbar)
975 .PassAs<ScrollbarThemePainter>(), 975 .PassAs<ScrollbarThemePainter>(),
976 FakeWebScrollbarThemeGeometry::create(has_thumb) 976 FakeWebScrollbarThemeGeometry::Create(has_thumb)
977 .PassAs<WebKit::WebScrollbarThemeGeometry>(), 977 .PassAs<WebKit::WebScrollbarThemeGeometry>(),
978 content_->id()); 978 content_->id());
979 scrollbar_->SetBounds(gfx::Size(10, 10)); 979 scrollbar_->SetBounds(gfx::Size(10, 10));
980 scrollbar_->SetAnchorPoint(gfx::PointF()); 980 scrollbar_->SetAnchorPoint(gfx::PointF());
981 scrollbar_->SetIsDrawable(true); 981 scrollbar_->SetIsDrawable(true);
982 root_->AddChild(scrollbar_); 982 root_->AddChild(scrollbar_);
983 983
984 layer_tree_host()->SetRootLayer(root_); 984 layer_tree_host()->SetRootLayer(root_);
985 LayerTreeHostContextTest::SetupTree(); 985 LayerTreeHostContextTest::SetupTree();
986 } 986 }
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 1229
1230 private: 1230 private:
1231 int commits_; 1231 int commits_;
1232 scoped_refptr<FakeScrollbarLayer> scrollbar_layer_; 1232 scoped_refptr<FakeScrollbarLayer> scrollbar_layer_;
1233 }; 1233 };
1234 1234
1235 SINGLE_AND_MULTI_THREAD_TEST_F(ScrollbarLayerLostContext) 1235 SINGLE_AND_MULTI_THREAD_TEST_F(ScrollbarLayerLostContext)
1236 1236
1237 } // namespace 1237 } // namespace
1238 } // namespace cc 1238 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_web_scrollbar_theme_geometry.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698