/external/chromium_org/cc/layers/ |
D | layer_impl_unittest.cc | 456 EXPECT_VECTOR_EQ(gfx::Vector2dF(), layer()->scroll_offset()); in TEST_F() 463 EXPECT_VECTOR_EQ(gfx::Vector2dF(), layer()->scroll_offset()); in TEST_F() 469 EXPECT_VECTOR_EQ(gfx::Vector2dF(), layer()->scroll_offset()); in TEST_F() 473 gfx::Vector2d scroll_offset(10, 5); in TEST_F() local 474 layer()->SetScrollOffset(scroll_offset); in TEST_F() 476 EXPECT_VECTOR_EQ(scroll_offset, layer()->TotalScrollOffset()); in TEST_F() 477 EXPECT_VECTOR_EQ(scroll_offset, layer()->scroll_offset()); in TEST_F() 483 EXPECT_VECTOR_EQ(layer()->ScrollDelta() + scroll_offset, in TEST_F() 485 EXPECT_VECTOR_EQ(scroll_offset, layer()->scroll_offset()); in TEST_F() 490 EXPECT_VECTOR_EQ(layer()->ScrollDelta() + scroll_offset, in TEST_F() [all …]
|
D | layer.h | 264 void SetScrollOffset(gfx::Vector2d scroll_offset); 265 gfx::Vector2d scroll_offset() const { return scroll_offset_; } in scroll_offset() function 266 void SetScrollOffsetFromImplSide(const gfx::Vector2d& scroll_offset); 315 return scroll_offset() + ScrollDelta(); in TotalScrollOffset() 562 const gfx::Vector2dF& scroll_offset) OVERRIDE;
|
D | layer.cc | 657 void Layer::SetScrollOffset(gfx::Vector2d scroll_offset) { in SetScrollOffset() argument 660 if (scroll_offset_ == scroll_offset) in SetScrollOffset() 662 scroll_offset_ = scroll_offset; in SetScrollOffset() 666 void Layer::SetScrollOffsetFromImplSide(const gfx::Vector2d& scroll_offset) { in SetScrollOffsetFromImplSide() argument 671 if (scroll_offset_ == scroll_offset) in SetScrollOffsetFromImplSide() 673 scroll_offset_ = scroll_offset; in SetScrollOffsetFromImplSide() 1119 void Layer::OnScrollOffsetAnimated(const gfx::Vector2dF& scroll_offset) { in OnScrollOffsetAnimated() argument
|
D | layer_impl.cc | 760 void LayerImpl::OnScrollOffsetAnimated(const gfx::Vector2dF& scroll_offset) { in OnScrollOffsetAnimated() argument 767 SetScrollDelta(scroll_offset - scroll_offset_); in OnScrollOffsetAnimated() 1086 void LayerImpl::SetScrollOffset(const gfx::Vector2d& scroll_offset) { in SetScrollOffset() argument 1087 SetScrollOffsetAndDelta(scroll_offset, ScrollDelta()); in SetScrollOffset() 1090 void LayerImpl::SetScrollOffsetAndDelta(const gfx::Vector2d& scroll_offset, in SetScrollOffsetAndDelta() argument 1094 last_scroll_offset_ = scroll_offset; in SetScrollOffsetAndDelta() 1096 if (scroll_offset_ != scroll_offset) { in SetScrollOffsetAndDelta() 1098 scroll_offset_ = scroll_offset; in SetScrollOffsetAndDelta() 1269 current_layer->scroll_offset() + current_layer->ScrollDelta(); in SetScrollbarPosition()
|
D | layer_impl.h | 107 const gfx::Vector2dF& scroll_offset) OVERRIDE; 380 void SetScrollOffset(const gfx::Vector2d& scroll_offset); 381 void SetScrollOffsetAndDelta(const gfx::Vector2d& scroll_offset, 383 gfx::Vector2d scroll_offset() const { return scroll_offset_; } in scroll_offset() function
|
/external/chromium_org/ppapi/shared_impl/ |
D | ppb_view_shared.cc | 39 scroll_offset.x == other.scroll_offset.x && in Equals() 40 scroll_offset.y == other.scroll_offset.y; in Equals() 84 PP_Bool PPB_View_Shared::GetScrollOffset(PP_Point* scroll_offset) const { in GetScrollOffset() 85 if (!scroll_offset) in GetScrollOffset() 87 *scroll_offset = data_.scroll_offset; in GetScrollOffset()
|
D | ppb_view_shared.h | 30 PP_Point scroll_offset; member 53 virtual PP_Bool GetScrollOffset(PP_Point* scroll_offset) const OVERRIDE;
|
/external/chromium_org/cc/trees/ |
D | layer_tree_host_unittest_scroll.cc | 55 EXPECT_VECTOR_EQ(initial_scroll_, scroll_layer->scroll_offset()); in Layout() 58 scroll_layer->scroll_offset()); in Layout() 77 EXPECT_VECTOR_EQ(initial_scroll_, scroll_layer->scroll_offset()); in DrawLayersOnThread() 82 EXPECT_VECTOR_EQ(scroll_layer->scroll_offset(), second_scroll_); in DrawLayersOnThread() 130 EXPECT_VECTOR_EQ(scroll_layer_->scroll_offset(), initial_scroll_); in BeginCommitOnThread() 133 EXPECT_VECTOR_EQ(scroll_layer_->scroll_offset(), in BeginCommitOnThread() 136 EXPECT_VECTOR_EQ(scroll_layer_->scroll_offset(), in BeginCommitOnThread() 152 EXPECT_VECTOR_EQ(scroll_layer->scroll_offset(), initial_scroll_); in DrawLayersOnThread() 162 EXPECT_VECTOR_EQ(scroll_layer_->scroll_offset(), initial_scroll_); in DrawLayersOnThread() 168 EXPECT_VECTOR_EQ(scroll_layer_->scroll_offset(), in DrawLayersOnThread() [all …]
|
/external/chromium_org/chrome/browser/renderer_host/ |
D | chrome_render_widget_host_view_mac_delegate_browsertest.cc | 92 const int scroll_offset = GetScrollTop(); in IN_PROC_BROWSER_TEST_F() local 93 ASSERT_NE(0, scroll_offset); in IN_PROC_BROWSER_TEST_F() 101 ASSERT_EQ(scroll_offset, GetScrollTop()); in IN_PROC_BROWSER_TEST_F() 110 const int scroll_offset = GetScrollTop(); in IN_PROC_BROWSER_TEST_F() local 111 ASSERT_NE(0, scroll_offset); in IN_PROC_BROWSER_TEST_F() 128 ASSERT_EQ(scroll_offset, GetScrollTop()); in IN_PROC_BROWSER_TEST_F()
|
D | chrome_render_widget_host_view_mac_history_swiper_browsertest.mm | 337 const int scroll_offset = GetScrollTop(); 338 EXPECT_EQ(offset, scroll_offset); 638 // should become a direct comparison between 'scroll_offset' and 100. 640 const int scroll_offset = GetScrollTop(); 645 EXPECT_GT(scroll_offset, 1);
|
/external/chromium_org/cc/test/ |
D | animation_test_common.h | 83 const gfx::Vector2dF& scroll_offset) OVERRIDE; 90 gfx::Vector2dF scroll_offset() { return scroll_offset_; } in scroll_offset() function 114 void set_scroll_offset(const gfx::Vector2dF& scroll_offset) { in set_scroll_offset() argument 115 scroll_offset_ = scroll_offset; in set_scroll_offset()
|
D | animation_test_common.cc | 224 const gfx::Vector2dF& scroll_offset) { in OnScrollOffsetAnimated() argument 225 scroll_offset_ = scroll_offset; in OnScrollOffsetAnimated()
|
/external/chromium_org/android_webview/browser/ |
D | browser_view_renderer.cc | 566 void BrowserViewRenderer::ScrollTo(gfx::Vector2d scroll_offset) { in ScrollTo() argument 574 scroll_offset_dip.set_x((scroll_offset.x() * max_scroll_offset_dip_.x()) / in ScrollTo() 578 scroll_offset_dip.set_y((scroll_offset.y() * max_scroll_offset_dip_.y()) / in ScrollTo() 623 gfx::Vector2d scroll_offset; in SetTotalRootLayerScrollOffset() local 627 scroll_offset.set_x((scroll_offset_dip.x() * max_offset.x()) / in SetTotalRootLayerScrollOffset() 632 scroll_offset.set_y((scroll_offset_dip.y() * max_offset.y()) / in SetTotalRootLayerScrollOffset() 636 DCHECK_LE(0, scroll_offset.x()); in SetTotalRootLayerScrollOffset() 637 DCHECK_LE(0, scroll_offset.y()); in SetTotalRootLayerScrollOffset() 638 DCHECK_LE(scroll_offset.x(), max_offset.x()); in SetTotalRootLayerScrollOffset() 639 DCHECK_LE(scroll_offset.y(), max_offset.y()); in SetTotalRootLayerScrollOffset() [all …]
|
D | shared_renderer_state.cc | 145 void SharedRendererState::SetScrollOffset(gfx::Vector2d scroll_offset) { in SetScrollOffset() argument 147 scroll_offset_ = scroll_offset; in SetScrollOffset()
|
D | shared_renderer_state.h | 37 void SetScrollOffset(gfx::Vector2d scroll_offset);
|
/external/chromium_org/chrome/browser/ui/views/frame/ |
D | browser_root_view.cc | 133 int scroll_offset = abs(event.y_offset()) > abs(event.x_offset()) ? in OnMouseWheel() local 138 if (scroll_offset < 0 && model->active_index() + 1 < model->count()) { in OnMouseWheel() 145 if (scroll_offset > 0 && model->active_index() > 0) { in OnMouseWheel()
|
/external/chromium_org/content/common/ |
D | page_state_serialization.cc | 506 WriteInteger(state.scroll_offset.x(), obj); in WriteFrameState() 507 WriteInteger(state.scroll_offset.y(), obj); in WriteFrameState() 559 state->scroll_offset = gfx::Point(x, y); in ReadFrameState() 621 state->scroll_offset = in ReadFrameState() 622 gfx::Point(state->scroll_offset.x() / state->page_scale_factor, in ReadFrameState() 623 state->scroll_offset.y() / state->page_scale_factor); in ReadFrameState() 723 scroll_offset = other.scroll_offset; in assign()
|
D | page_state_serialization_unittest.cc | 76 EXPECT_EQ(a.scroll_offset, b.scroll_offset); in ExpectEquality() 105 frame_state->scroll_offset = gfx::Point(0, 100); in PopulateFrameState() 144 frame_state->scroll_offset = gfx::Point(42, -42); in PopulateFrameStateForBackwardsCompatTest()
|
D | page_state_serialization.h | 52 gfx::Point scroll_offset; member
|
/external/chromium_org/pdf/ |
D | out_of_process_instance.cc | 359 pp::Point scroll_offset(dict.Get(pp::Var(kJSXOffset)).AsInt(), in HandleMessage() local 365 scroll_offset = BoundScrollOffsetToDocument(scroll_offset); in HandleMessage() 366 engine_->ScrolledToXPosition(scroll_offset.x() * device_scale_); in HandleMessage() 367 engine_->ScrolledToYPosition(scroll_offset.y() * device_scale_); in HandleMessage() 539 pp::Point scroll_offset( in DidChangeView() local 541 engine_->ScrolledToXPosition(scroll_offset.x() * device_scale_); in DidChangeView() 542 engine_->ScrolledToYPosition(scroll_offset.y() * device_scale_); in DidChangeView() 1367 const pp::Point& scroll_offset) { in BoundScrollOffsetToDocument() argument 1369 int x = std::max(std::min(scroll_offset.x(), max_x), 0); in BoundScrollOffsetToDocument() 1371 int y = std::max(std::min(scroll_offset.y(), max_y), 0); in BoundScrollOffsetToDocument()
|
/external/chromium_org/cc/animation/ |
D | layer_animation_value_observer.h | 19 virtual void OnScrollOffsetAnimated(const gfx::Vector2dF& scroll_offset) = 0;
|
D | layer_animation_controller_unittest.cc | 695 EXPECT_EQ(initial_value, dummy.scroll_offset()); in TEST() 700 EXPECT_EQ(initial_value, dummy_impl.scroll_offset()); in TEST() 709 EXPECT_VECTOR2DF_EQ(gfx::Vector2dF(200.f, 250.f), dummy.scroll_offset()); in TEST() 714 dummy_impl.scroll_offset()); in TEST() 720 EXPECT_VECTOR2DF_EQ(target_value, dummy_impl.scroll_offset()); in TEST() 727 EXPECT_VECTOR2DF_EQ(target_value, dummy.scroll_offset()); in TEST() 775 EXPECT_EQ(initial_value, dummy.scroll_offset()); in TEST() 780 EXPECT_EQ(initial_value, dummy_impl.scroll_offset()); in TEST() 792 EXPECT_VECTOR2DF_EQ(gfx::Vector2dF(400.f, 150.f), dummy.scroll_offset()); in TEST() 797 dummy_impl.scroll_offset()); in TEST() [all …]
|
/external/chromium_org/content/renderer/accessibility/ |
D | renderer_accessibility_complete.cc | 114 gfx::Size scroll_offset = document.frame()->scrollOffset(); in HandleAXEvent() local 115 if (scroll_offset != last_scroll_offset_) { in HandleAXEvent() 121 last_scroll_offset_ = scroll_offset; in HandleAXEvent()
|
/external/chromium_org/content/public/browser/android/ |
D | content_view_core.h | 67 const gfx::Vector2dF& scroll_offset,
|
/external/chromium_org/content/renderer/ |
D | history_serialization.cc | 93 state->scroll_offset = item.scrollOffset(); in GenerateFrameStateFromItem() 140 item.setScrollOffset(state.scroll_offset); in RecursivelyGenerateHistoryItem()
|