Home
last modified time | relevance | path

Searched refs:scroll_offset (Results 1 – 25 of 43) sorted by relevance

12

/external/chromium_org/cc/layers/
Dlayer_impl_unittest.cc456 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 …]
Dlayer.h264 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;
Dlayer.cc657 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
Dlayer_impl.cc760 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()
Dlayer_impl.h107 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/
Dppb_view_shared.cc39 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()
Dppb_view_shared.h30 PP_Point scroll_offset; member
53 virtual PP_Bool GetScrollOffset(PP_Point* scroll_offset) const OVERRIDE;
/external/chromium_org/cc/trees/
Dlayer_tree_host_unittest_scroll.cc55 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/
Dchrome_render_widget_host_view_mac_delegate_browsertest.cc92 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()
Dchrome_render_widget_host_view_mac_history_swiper_browsertest.mm337 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/
Danimation_test_common.h83 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()
Danimation_test_common.cc224 const gfx::Vector2dF& scroll_offset) { in OnScrollOffsetAnimated() argument
225 scroll_offset_ = scroll_offset; in OnScrollOffsetAnimated()
/external/chromium_org/android_webview/browser/
Dbrowser_view_renderer.cc566 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 …]
Dshared_renderer_state.cc145 void SharedRendererState::SetScrollOffset(gfx::Vector2d scroll_offset) { in SetScrollOffset() argument
147 scroll_offset_ = scroll_offset; in SetScrollOffset()
Dshared_renderer_state.h37 void SetScrollOffset(gfx::Vector2d scroll_offset);
/external/chromium_org/chrome/browser/ui/views/frame/
Dbrowser_root_view.cc133 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/
Dpage_state_serialization.cc506 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()
Dpage_state_serialization_unittest.cc76 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()
Dpage_state_serialization.h52 gfx::Point scroll_offset; member
/external/chromium_org/pdf/
Dout_of_process_instance.cc359 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/
Dlayer_animation_value_observer.h19 virtual void OnScrollOffsetAnimated(const gfx::Vector2dF& scroll_offset) = 0;
Dlayer_animation_controller_unittest.cc695 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/
Drenderer_accessibility_complete.cc114 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/
Dcontent_view_core.h67 const gfx::Vector2dF& scroll_offset,
/external/chromium_org/content/renderer/
Dhistory_serialization.cc93 state->scroll_offset = item.scrollOffset(); in GenerateFrameStateFromItem()
140 item.setScrollOffset(state.scroll_offset); in RecursivelyGenerateHistoryItem()

12