scrollbar_layer_unittest.cc | 372 horizontal_scrollbar_layer_ = SolidColorScrollbarLayerImpl::Create( 383 scoped_ptr<SolidColorScrollbarLayerImpl> horizontal_scrollbar_layer_; member in class:cc::__anon6573::ScrollbarLayerSolidColorThumbTest 388 horizontal_scrollbar_layer_->SetCurrentPos(0); 389 horizontal_scrollbar_layer_->SetMaximum(10); 393 horizontal_scrollbar_layer_->SetVisibleToTotalLengthRatio(0.33f); 394 horizontal_scrollbar_layer_->SetBounds(gfx::Size(100, 3)); 395 EXPECT_EQ(33, horizontal_scrollbar_layer_->ComputeThumbQuadRect().width()); 398 horizontal_scrollbar_layer_->SetVisibleToTotalLengthRatio(0.01f); 399 horizontal_scrollbar_layer_->SetBounds(gfx::Size(100, 3)); 400 EXPECT_EQ(3, horizontal_scrollbar_layer_->ComputeThumbQuadRect().width()) [all...] |