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

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

Issue 549663002: Move AppWindowGeometryCacheTest to extensions_unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (app-window) rebase 2 Created 6 years, 3 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
« no previous file with comments | « extensions/shell/app_shell.gyp ('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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APP_SORTING_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_SORTING_H_
7
8 #include "base/compiler_specific.h"
9 #include "extensions/browser/app_sorting.h"
10
11 namespace extensions {
12
13 // A stub AppSorting. Since app_shell only runs a single app we don't need to
14 // sort them.
15 class ShellAppSorting : public AppSorting {
16 public:
17 ShellAppSorting();
18 virtual ~ShellAppSorting();
19
20 // AppSorting overrides:
21 virtual void SetExtensionScopedPrefs(ExtensionScopedPrefs* prefs) OVERRIDE;
22 virtual void SetExtensionSyncService(
23 ExtensionSyncService* extension_sync_service) OVERRIDE;
24 virtual void Initialize(const ExtensionIdList& extension_ids) OVERRIDE;
25 virtual void FixNTPOrdinalCollisions() OVERRIDE;
26 virtual void EnsureValidOrdinals(
27 const std::string& extension_id,
28 const syncer::StringOrdinal& suggested_page) OVERRIDE;
29 virtual void OnExtensionMoved(
30 const std::string& moved_extension_id,
31 const std::string& predecessor_extension_id,
32 const std::string& successor_extension_id) OVERRIDE;
33 virtual syncer::StringOrdinal GetAppLaunchOrdinal(
34 const std::string& extension_id) const OVERRIDE;
35 virtual void SetAppLaunchOrdinal(
36 const std::string& extension_id,
37 const syncer::StringOrdinal& new_app_launch_ordinal) OVERRIDE;
38 virtual syncer::StringOrdinal CreateFirstAppLaunchOrdinal(
39 const syncer::StringOrdinal& page_ordinal) const OVERRIDE;
40 virtual syncer::StringOrdinal CreateNextAppLaunchOrdinal(
41 const syncer::StringOrdinal& page_ordinal) const OVERRIDE;
42 virtual syncer::StringOrdinal CreateFirstAppPageOrdinal() const OVERRIDE;
43 virtual syncer::StringOrdinal GetNaturalAppPageOrdinal() const OVERRIDE;
44 virtual syncer::StringOrdinal GetPageOrdinal(
45 const std::string& extension_id) const OVERRIDE;
46 virtual void SetPageOrdinal(
47 const std::string& extension_id,
48 const syncer::StringOrdinal& new_page_ordinal) OVERRIDE;
49 virtual void ClearOrdinals(const std::string& extension_id) OVERRIDE;
50 virtual int PageStringOrdinalAsInteger(
51 const syncer::StringOrdinal& page_ordinal) const OVERRIDE;
52 virtual syncer::StringOrdinal PageIntegerAsStringOrdinal(
53 size_t page_index) OVERRIDE;
54 virtual void SetExtensionVisible(const std::string& extension_id,
55 bool visible) OVERRIDE;
56
57 private:
58 DISALLOW_COPY_AND_ASSIGN(ShellAppSorting);
59 };
60
61 } // namespace extensions
62
63 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_SORTING_H_
OLDNEW
« no previous file with comments | « extensions/shell/app_shell.gyp ('k') | extensions/shell/browser/shell_app_sorting.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698