#ifndef APPS_SHELL_BROWSER_SHELL_APP_SORTING_H_
#define APPS_SHELL_BROWSER_SHELL_APP_SORTING_H_
#include "base/compiler_specific.h"
#include "extensions/browser/app_sorting.h"
namespace apps {
class ShellAppSorting : public extensions::AppSorting {
public:
ShellAppSorting();
virtual ~ShellAppSorting();
virtual void SetExtensionScopedPrefs(extensions::ExtensionScopedPrefs* prefs)
OVERRIDE;
virtual void SetExtensionSyncService(
ExtensionSyncService* extension_sync_service) OVERRIDE;
virtual void Initialize(
const extensions::ExtensionIdList& extension_ids) OVERRIDE;
virtual void FixNTPOrdinalCollisions() OVERRIDE;
virtual void EnsureValidOrdinals(
const std::string& extension_id,
const syncer::StringOrdinal& suggested_page) OVERRIDE;
virtual void OnExtensionMoved(
const std::string& moved_extension_id,
const std::string& predecessor_extension_id,
const std::string& successor_extension_id) OVERRIDE;
virtual syncer::StringOrdinal GetAppLaunchOrdinal(
const std::string& extension_id) const OVERRIDE;
virtual void SetAppLaunchOrdinal(
const std::string& extension_id,
const syncer::StringOrdinal& new_app_launch_ordinal) OVERRIDE;
virtual syncer::StringOrdinal CreateFirstAppLaunchOrdinal(
const syncer::StringOrdinal& page_ordinal) const OVERRIDE;
virtual syncer::StringOrdinal CreateNextAppLaunchOrdinal(
const syncer::StringOrdinal& page_ordinal) const OVERRIDE;
virtual syncer::StringOrdinal CreateFirstAppPageOrdinal() const OVERRIDE;
virtual syncer::StringOrdinal GetNaturalAppPageOrdinal() const OVERRIDE;
virtual syncer::StringOrdinal GetPageOrdinal(
const std::string& extension_id) const OVERRIDE;
virtual void SetPageOrdinal(
const std::string& extension_id,
const syncer::StringOrdinal& new_page_ordinal) OVERRIDE;
virtual void ClearOrdinals(const std::string& extension_id) OVERRIDE;
virtual int PageStringOrdinalAsInteger(
const syncer::StringOrdinal& page_ordinal) const OVERRIDE;
virtual syncer::StringOrdinal PageIntegerAsStringOrdinal(
size_t page_index) OVERRIDE;
virtual void MarkExtensionAsHidden(const std::string& extension_id) OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(ShellAppSorting);
};
}
#endif