#include "extensions/browser/null_app_sorting.h"
#include "components/sync/model/string_ordinal.h"
#include "extensions/common/extension_id.h"
namespace {
const char kFirstApp[] = …;
const char kNextApp[] = …;
const char kFirstPage[] = …;
}
namespace extensions {
NullAppSorting::NullAppSorting() { … }
NullAppSorting::~NullAppSorting() { … }
void NullAppSorting::InitializePageOrdinalMapFromWebApps() { … }
void NullAppSorting::FixNTPOrdinalCollisions() { … }
void NullAppSorting::EnsureValidOrdinals(
const ExtensionId& extension_id,
const syncer::StringOrdinal& suggested_page) { … }
bool NullAppSorting::GetDefaultOrdinals(
const ExtensionId& extension_id,
syncer::StringOrdinal* page_ordinal,
syncer::StringOrdinal* app_launch_ordinal) { … }
void NullAppSorting::OnExtensionMoved(
const ExtensionId& moved_extension_id,
const ExtensionId& predecessor_extension_id,
const ExtensionId& successor_extension_id) { … }
syncer::StringOrdinal NullAppSorting::GetAppLaunchOrdinal(
const ExtensionId& extension_id) const { … }
void NullAppSorting::SetAppLaunchOrdinal(
const ExtensionId& extension_id,
const syncer::StringOrdinal& new_app_launch_ordinal) { … }
syncer::StringOrdinal NullAppSorting::CreateFirstAppLaunchOrdinal(
const syncer::StringOrdinal& page_ordinal) const { … }
syncer::StringOrdinal NullAppSorting::CreateNextAppLaunchOrdinal(
const syncer::StringOrdinal& page_ordinal) const { … }
syncer::StringOrdinal NullAppSorting::CreateFirstAppPageOrdinal() const { … }
syncer::StringOrdinal NullAppSorting::GetNaturalAppPageOrdinal() const { … }
syncer::StringOrdinal NullAppSorting::GetPageOrdinal(
const ExtensionId& extension_id) const { … }
void NullAppSorting::SetPageOrdinal(
const ExtensionId& extension_id,
const syncer::StringOrdinal& new_page_ordinal) { … }
void NullAppSorting::ClearOrdinals(const ExtensionId& extension_id) { … }
int NullAppSorting::PageStringOrdinalAsInteger(
const syncer::StringOrdinal& page_ordinal) const { … }
syncer::StringOrdinal NullAppSorting::PageIntegerAsStringOrdinal(
size_t page_index) { … }
void NullAppSorting::SetExtensionVisible(const ExtensionId& extension_id,
bool visible) { … }
}