| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef APPS_SHELL_APP_SHELL_APP_SORTING_H_ | 5 #ifndef APPS_SHELL_SHELL_APP_SORTING_H_ |
| 6 #define APPS_SHELL_APP_SHELL_APP_SORTING_H_ | 6 #define APPS_SHELL_SHELL_APP_SORTING_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "extensions/browser/app_sorting.h" | 9 #include "extensions/browser/app_sorting.h" |
| 10 | 10 |
| 11 namespace apps { | 11 namespace apps { |
| 12 | 12 |
| 13 // A stub AppSorting. Since app_shell only runs a single app we don't need to | 13 // A stub AppSorting. Since app_shell only runs a single app we don't need to |
| 14 // sort them. | 14 // sort them. |
| 15 class AppShellAppSorting : public extensions::AppSorting { | 15 class ShellAppSorting : public extensions::AppSorting { |
| 16 public: | 16 public: |
| 17 AppShellAppSorting(); | 17 ShellAppSorting(); |
| 18 virtual ~AppShellAppSorting(); | 18 virtual ~ShellAppSorting(); |
| 19 | 19 |
| 20 // extensions::AppSorting overrides: | 20 // extensions::AppSorting overrides: |
| 21 virtual void SetExtensionScopedPrefs(extensions::ExtensionScopedPrefs* prefs) | 21 virtual void SetExtensionScopedPrefs(extensions::ExtensionScopedPrefs* prefs) |
| 22 OVERRIDE; | 22 OVERRIDE; |
| 23 virtual void SetExtensionSyncService( | 23 virtual void SetExtensionSyncService( |
| 24 ExtensionSyncService* extension_sync_service) OVERRIDE; | 24 ExtensionSyncService* extension_sync_service) OVERRIDE; |
| 25 virtual void Initialize( | 25 virtual void Initialize( |
| 26 const extensions::ExtensionIdList& extension_ids) OVERRIDE; | 26 const extensions::ExtensionIdList& extension_ids) OVERRIDE; |
| 27 virtual void FixNTPOrdinalCollisions() OVERRIDE; | 27 virtual void FixNTPOrdinalCollisions() OVERRIDE; |
| 28 virtual void EnsureValidOrdinals( | 28 virtual void EnsureValidOrdinals( |
| (...skipping 20 matching lines...) Expand all Loading... |
| 49 const std::string& extension_id, | 49 const std::string& extension_id, |
| 50 const syncer::StringOrdinal& new_page_ordinal) OVERRIDE; | 50 const syncer::StringOrdinal& new_page_ordinal) OVERRIDE; |
| 51 virtual void ClearOrdinals(const std::string& extension_id) OVERRIDE; | 51 virtual void ClearOrdinals(const std::string& extension_id) OVERRIDE; |
| 52 virtual int PageStringOrdinalAsInteger( | 52 virtual int PageStringOrdinalAsInteger( |
| 53 const syncer::StringOrdinal& page_ordinal) const OVERRIDE; | 53 const syncer::StringOrdinal& page_ordinal) const OVERRIDE; |
| 54 virtual syncer::StringOrdinal PageIntegerAsStringOrdinal( | 54 virtual syncer::StringOrdinal PageIntegerAsStringOrdinal( |
| 55 size_t page_index) OVERRIDE; | 55 size_t page_index) OVERRIDE; |
| 56 virtual void MarkExtensionAsHidden(const std::string& extension_id) OVERRIDE; | 56 virtual void MarkExtensionAsHidden(const std::string& extension_id) OVERRIDE; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 DISALLOW_COPY_AND_ASSIGN(AppShellAppSorting); | 59 DISALLOW_COPY_AND_ASSIGN(ShellAppSorting); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace apps | 62 } // namespace apps |
| 63 | 63 |
| 64 #endif // APPS_SHELL_APP_SHELL_APP_SORTING_H_ | 64 #endif // APPS_SHELL_SHELL_APP_SORTING_H_ |
| OLD | NEW |