Home
last modified time | relevance | path

Searched refs:target_page (Results 1 – 10 of 10) sorted by relevance

/external/chromium_org/ui/app_list/
Dpagination_model.cc69 const int from_page = showing ? selected_page_ : transition_.target_page; in SelectPage()
70 const int to_page = showing ? transition_.target_page : selected_page_; in SelectPage()
109 DCHECK(transition.target_page >= -1 && in SetTransition()
110 transition.target_page <= total_pages_); in SetTransition()
137 transition_.target_page = CalculateTargetPage(page_change_dir); in UpdateScroll()
140 int transition_dir = transition_.target_page > selected_page_ ? 1 : -1; in UpdateScroll()
151 if (is_valid_page(transition_.target_page)) { in UpdateScroll()
152 SelectPage(transition_.target_page, false); in UpdateScroll()
195 return transition_.target_page; in SelectedTargetPage()
215 const int target_page = SelectedTargetPage() + delta; in CalculateTargetPage() local
[all …]
Dpagination_model_unittest.cc80 model_->transition().target_page == transition_page_) { in TransitionChanged()
234 EXPECT_EQ(kStartPage + 1, pagination_.transition().target_page); in TEST_F()
243 EXPECT_EQ(kStartPage - 1, pagination_.transition().target_page); in TEST_F()
252 EXPECT_EQ(kStartPage + 1, pagination_.transition().target_page); in TEST_F()
261 EXPECT_EQ(kStartPage - 1, pagination_.transition().target_page); in TEST_F()
276 EXPECT_EQ(kStartPage + 1, pagination_.transition().target_page); in TEST_F()
288 EXPECT_EQ(kStartPage - 1, pagination_.transition().target_page); in TEST_F()
298 EXPECT_EQ(kStartPage - 1, pagination_.transition().target_page); in TEST_F()
310 EXPECT_EQ(kStartPage + 1, pagination_.transition().target_page); in TEST_F()
324 EXPECT_EQ(kStartPage + 1, pagination_.transition().target_page); in TEST_F()
[all …]
Dpagination_model.h31 Transition(int target_page, double progress) in Transition()
32 : target_page(target_page), in Transition()
37 return target_page == rhs.target_page && progress == rhs.progress; in Equals()
44 int target_page; member
97 return transition_.target_page != -1 || transition_.progress != 0; in has_transition()
/external/chromium_org/chrome/common/extensions/docs/server2/
Dlink_error_detector.py170 target_page = self._renderer(starting_url)
171 original_status = status = target_page.status
177 redirect_link = target_page.headers.get('Location')
178 target_page = self._renderer(redirect_link)
179 status = target_page.status
207 target_page = pages(components.path)
209 if target_page.status != 200:
222 target_page.status, url, link, 'target page not found'))
225 if not fragment in target_page.anchors:
227 target_page.status, url, link, 'target anchor not found'))
[all …]
/external/chromium_org/ui/app_list/views/
Dcontents_view.cc206 int target_page = current_page; in UpdatePageBounds() local
211 if (pagination_model_.is_valid_page(transition.target_page)) { in UpdatePageBounds()
212 target_page = transition.target_page; in UpdatePageBounds()
221 gfx::Rect target_page_origin(GetOffscreenPageBounds(target_page)); in UpdatePageBounds()
228 view_model_->view_at(target_page)->SetBoundsRect(target_page_rect); in UpdatePageBounds()
Dpage_switcher.cc252 const int target_page = model_->transition().target_page; in TransitionChanged() local
257 if (current_page > target_page) { in TransitionChanged()
263 if (model_->is_valid_page(target_page)) in TransitionChanged()
264 GetButtonByIndex(buttons_, target_page)->SetSelectedRange(progress); in TransitionChanged()
Dcontents_switcher_view.cc66 int new_selected = pm.transition().target_page; in TransitionChanged()
69 old_selected = pm.transition().target_page; in TransitionChanged()
Dapps_grid_view.cc1179 int target_page = std::min(pagination_model_.total_pages() - 1, in MoveSelected() local
1181 SetSelectedItemByIndex(Index(target_page, target_slot)); in MoveSelected()
1201 const bool is_valid = pagination_model_.is_valid_page(transition.target_page); in CalculateIdealBounds()
1204 const int dir = transition.target_page > current_page ? -1 : 1; in CalculateIdealBounds()
1234 view_index.page == transition.target_page) { in CalculateIdealBounds()
1246 view_index.page == transition.target_page) { in CalculateIdealBounds()
1313 const int target_page = target.x() < 0 ? -1 : in AnimationBetweenRows() local
1316 const int dir = current_page < target_page || in AnimationBetweenRows()
1317 (current_page == target_page && current.y() < target.y()) ? 1 : -1; in AnimationBetweenRows()
2060 if (pagination_model_.is_valid_page(transition.target_page)) in TransitionChanged()
/external/chromium_org/ash/wm/
Dapp_list_controller.cc494 if (pagination_model->is_valid_page(transition.target_page)) in TransitionChanged()
506 const int dir = transition.target_page > current_page ? -1 : 1; in TransitionChanged()
/external/chromium_org/v8/src/heap/
Dmark-compact.cc4438 Page* target_page = Page::FromAddress(reinterpret_cast<Address>(target)); in RecordRelocSlot() local
4440 if (target_page->IsEvacuationCandidate() && in RecordRelocSlot()
4449 &slots_buffer_allocator_, target_page->slots_buffer_address(), in RecordRelocSlot()
4453 &slots_buffer_allocator_, target_page->slots_buffer_address(), in RecordRelocSlot()
4458 &slots_buffer_allocator_, target_page->slots_buffer_address(), in RecordRelocSlot()
4462 EvictEvacuationCandidate(target_page); in RecordRelocSlot()
4469 Page* target_page = Page::FromAddress(reinterpret_cast<Address>(target)); in RecordCodeEntrySlot() local
4470 if (target_page->IsEvacuationCandidate() && in RecordCodeEntrySlot()
4473 target_page->slots_buffer_address(), in RecordCodeEntrySlot()
4476 EvictEvacuationCandidate(target_page); in RecordCodeEntrySlot()