Lines Matching defs:page_ordinal
34 const char kPrefPageOrdinal[] = "page_ordinal";
224 syncer::StringOrdinal page_ordinal = GetPageOrdinal(extension_id);
225 if (!page_ordinal.IsValid()) {
227 page_ordinal = suggested_page;
228 } else if (!GetDefaultOrdinals(extension_id, &page_ordinal, NULL) ||
229 !page_ordinal.IsValid()) {
230 page_ordinal = GetNaturalAppPageOrdinal();
233 SetPageOrdinal(extension_id, page_ordinal);
241 app_launch_ordinal = ResolveCollision(page_ordinal, app_launch_ordinal);
243 app_launch_ordinal = CreateNextAppLaunchOrdinal(page_ordinal);
303 syncer::StringOrdinal page_ordinal = GetPageOrdinal(extension_id);
305 extension_id, page_ordinal, GetAppLaunchOrdinal(extension_id));
306 AddOrdinalMapping(extension_id, page_ordinal, new_app_launch_ordinal);
320 const syncer::StringOrdinal& page_ordinal) const {
322 GetMinOrMaxAppLaunchOrdinalsOnPage(page_ordinal,
332 const syncer::StringOrdinal& page_ordinal) const {
334 GetMinOrMaxAppLaunchOrdinalsOnPage(page_ordinal,
410 const syncer::StringOrdinal& page_ordinal) const {
411 if (!page_ordinal.IsValid())
414 PageOrdinalMap::const_iterator it = ntp_ordinal_map_.find(page_ordinal);
493 const syncer::StringOrdinal& page_ordinal,
495 if (!page_ordinal.IsValid() || !app_launch_ordinal.IsValid())
498 ntp_ordinal_map_[page_ordinal].insert(
504 const syncer::StringOrdinal& page_ordinal,
506 if (!page_ordinal.IsValid() || !app_launch_ordinal.IsValid())
510 // if |page_ordinal| isn't a used page.
511 PageOrdinalMap::iterator page_map = ntp_ordinal_map_.find(page_ordinal);
559 syncer::StringOrdinal page_ordinal = CreateFirstAppPageOrdinal();
561 CreateFirstAppLaunchOrdinal(page_ordinal);
564 default_ordinals_[extension_id].page_ordinal = page_ordinal;
572 syncer::StringOrdinal* page_ordinal,
579 if (page_ordinal)
580 *page_ordinal = it->second.page_ordinal;
587 const syncer::StringOrdinal& page_ordinal,
589 DCHECK(page_ordinal.IsValid() && app_launch_ordinal.IsValid());
591 PageOrdinalMap::const_iterator page_it = ntp_ordinal_map_.find(page_ordinal);