Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: extensions/shell/browser/shell_app_sorting.h

Issue 412713002: Move apps/shell to extensions/shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 40% Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « extensions/shell/browser/dns_apitest.cc ('k') | extensions/shell/browser/shell_app_sorting.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_BROWSER_SHELL_APP_SORTING_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APP_SORTING_H_
6 #define APPS_SHELL_BROWSER_SHELL_APP_SORTING_H_ 6 #define EXTENSIONS_SHELL_BROWSER_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 extensions {
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 ShellAppSorting : public extensions::AppSorting { 15 class ShellAppSorting : public AppSorting {
16 public: 16 public:
17 ShellAppSorting(); 17 ShellAppSorting();
18 virtual ~ShellAppSorting(); 18 virtual ~ShellAppSorting();
19 19
20 // extensions::AppSorting overrides: 20 // AppSorting overrides:
21 virtual void SetExtensionScopedPrefs(extensions::ExtensionScopedPrefs* prefs) 21 virtual void SetExtensionScopedPrefs(ExtensionScopedPrefs* prefs) OVERRIDE;
22 OVERRIDE;
23 virtual void SetExtensionSyncService( 22 virtual void SetExtensionSyncService(
24 ExtensionSyncService* extension_sync_service) OVERRIDE; 23 ExtensionSyncService* extension_sync_service) OVERRIDE;
25 virtual void Initialize( 24 virtual void Initialize(const ExtensionIdList& extension_ids) OVERRIDE;
26 const extensions::ExtensionIdList& extension_ids) OVERRIDE;
27 virtual void FixNTPOrdinalCollisions() OVERRIDE; 25 virtual void FixNTPOrdinalCollisions() OVERRIDE;
28 virtual void EnsureValidOrdinals( 26 virtual void EnsureValidOrdinals(
29 const std::string& extension_id, 27 const std::string& extension_id,
30 const syncer::StringOrdinal& suggested_page) OVERRIDE; 28 const syncer::StringOrdinal& suggested_page) OVERRIDE;
31 virtual void OnExtensionMoved( 29 virtual void OnExtensionMoved(
32 const std::string& moved_extension_id, 30 const std::string& moved_extension_id,
33 const std::string& predecessor_extension_id, 31 const std::string& predecessor_extension_id,
34 const std::string& successor_extension_id) OVERRIDE; 32 const std::string& successor_extension_id) OVERRIDE;
35 virtual syncer::StringOrdinal GetAppLaunchOrdinal( 33 virtual syncer::StringOrdinal GetAppLaunchOrdinal(
36 const std::string& extension_id) const OVERRIDE; 34 const std::string& extension_id) const OVERRIDE;
(...skipping 16 matching lines...) Expand all
53 const syncer::StringOrdinal& page_ordinal) const OVERRIDE; 51 const syncer::StringOrdinal& page_ordinal) const OVERRIDE;
54 virtual syncer::StringOrdinal PageIntegerAsStringOrdinal( 52 virtual syncer::StringOrdinal PageIntegerAsStringOrdinal(
55 size_t page_index) OVERRIDE; 53 size_t page_index) OVERRIDE;
56 virtual void SetExtensionVisible(const std::string& extension_id, 54 virtual void SetExtensionVisible(const std::string& extension_id,
57 bool visible) OVERRIDE; 55 bool visible) OVERRIDE;
58 56
59 private: 57 private:
60 DISALLOW_COPY_AND_ASSIGN(ShellAppSorting); 58 DISALLOW_COPY_AND_ASSIGN(ShellAppSorting);
61 }; 59 };
62 60
63 } // namespace apps 61 } // namespace extensions
64 62
65 #endif // APPS_SHELL_BROWSER_SHELL_APP_SORTING_H_ 63 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_SORTING_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/dns_apitest.cc ('k') | extensions/shell/browser/shell_app_sorting.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698