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

Side by Side Diff: apps/shell/shell_app_sorting.cc

Issue 99053008: Rename apps::AppShell* to apps::Shell* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « apps/shell/shell_app_sorting.h ('k') | apps/shell/shell_browser_context.h » ('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 #include "apps/shell/app_shell_app_sorting.h" 5 #include "apps/shell/shell_app_sorting.h"
6 6
7 #include "sync/api/string_ordinal.h" 7 #include "sync/api/string_ordinal.h"
8 8
9 namespace { 9 namespace {
10 10
11 // Ordinals for a single app on a single page. 11 // Ordinals for a single app on a single page.
12 const char kFirstApp[] = "a"; 12 const char kFirstApp[] = "a";
13 const char kNextApp[] = "b"; 13 const char kNextApp[] = "b";
14 const char kFirstPage[] = "a"; 14 const char kFirstPage[] = "a";
15 15
16 } // namespace 16 } // namespace
17 17
18 namespace apps { 18 namespace apps {
19 19
20 AppShellAppSorting::AppShellAppSorting() { 20 ShellAppSorting::ShellAppSorting() {
21 } 21 }
22 22
23 AppShellAppSorting::~AppShellAppSorting() { 23 ShellAppSorting::~ShellAppSorting() {
24 } 24 }
25 25
26 void AppShellAppSorting::SetExtensionScopedPrefs( 26 void ShellAppSorting::SetExtensionScopedPrefs(
27 extensions::ExtensionScopedPrefs* prefs) { 27 extensions::ExtensionScopedPrefs* prefs) {
28 } 28 }
29 29
30 void AppShellAppSorting::SetExtensionSyncService( 30 void ShellAppSorting::SetExtensionSyncService(
31 ExtensionSyncService* extension_sync_service) { 31 ExtensionSyncService* extension_sync_service) {
32 } 32 }
33 33
34 void AppShellAppSorting::Initialize( 34 void ShellAppSorting::Initialize(
35 const extensions::ExtensionIdList& extension_ids) { 35 const extensions::ExtensionIdList& extension_ids) {
36 } 36 }
37 37
38 void AppShellAppSorting::FixNTPOrdinalCollisions() { 38 void ShellAppSorting::FixNTPOrdinalCollisions() {
39 } 39 }
40 40
41 void AppShellAppSorting::EnsureValidOrdinals( 41 void ShellAppSorting::EnsureValidOrdinals(
42 const std::string& extension_id, 42 const std::string& extension_id,
43 const syncer::StringOrdinal& suggested_page) { 43 const syncer::StringOrdinal& suggested_page) {
44 } 44 }
45 45
46 void AppShellAppSorting::OnExtensionMoved( 46 void ShellAppSorting::OnExtensionMoved(
47 const std::string& moved_extension_id, 47 const std::string& moved_extension_id,
48 const std::string& predecessor_extension_id, 48 const std::string& predecessor_extension_id,
49 const std::string& successor_extension_id) { 49 const std::string& successor_extension_id) {
50 } 50 }
51 51
52 syncer::StringOrdinal AppShellAppSorting::GetAppLaunchOrdinal( 52 syncer::StringOrdinal ShellAppSorting::GetAppLaunchOrdinal(
53 const std::string& extension_id) const { 53 const std::string& extension_id) const {
54 return syncer::StringOrdinal(kFirstApp); 54 return syncer::StringOrdinal(kFirstApp);
55 } 55 }
56 56
57 void AppShellAppSorting::SetAppLaunchOrdinal( 57 void ShellAppSorting::SetAppLaunchOrdinal(
58 const std::string& extension_id, 58 const std::string& extension_id,
59 const syncer::StringOrdinal& new_app_launch_ordinal) { 59 const syncer::StringOrdinal& new_app_launch_ordinal) {
60 } 60 }
61 61
62 syncer::StringOrdinal AppShellAppSorting::CreateFirstAppLaunchOrdinal( 62 syncer::StringOrdinal ShellAppSorting::CreateFirstAppLaunchOrdinal(
63 const syncer::StringOrdinal& page_ordinal) const { 63 const syncer::StringOrdinal& page_ordinal) const {
64 return syncer::StringOrdinal(kFirstApp); 64 return syncer::StringOrdinal(kFirstApp);
65 } 65 }
66 66
67 syncer::StringOrdinal AppShellAppSorting::CreateNextAppLaunchOrdinal( 67 syncer::StringOrdinal ShellAppSorting::CreateNextAppLaunchOrdinal(
68 const syncer::StringOrdinal& page_ordinal) const { 68 const syncer::StringOrdinal& page_ordinal) const {
69 return syncer::StringOrdinal(kNextApp); 69 return syncer::StringOrdinal(kNextApp);
70 } 70 }
71 71
72 syncer::StringOrdinal AppShellAppSorting::CreateFirstAppPageOrdinal() const { 72 syncer::StringOrdinal ShellAppSorting::CreateFirstAppPageOrdinal() const {
73 return syncer::StringOrdinal(kFirstPage); 73 return syncer::StringOrdinal(kFirstPage);
74 } 74 }
75 75
76 syncer::StringOrdinal AppShellAppSorting::GetNaturalAppPageOrdinal() const { 76 syncer::StringOrdinal ShellAppSorting::GetNaturalAppPageOrdinal() const {
77 return syncer::StringOrdinal(kFirstPage); 77 return syncer::StringOrdinal(kFirstPage);
78 } 78 }
79 79
80 syncer::StringOrdinal AppShellAppSorting::GetPageOrdinal( 80 syncer::StringOrdinal ShellAppSorting::GetPageOrdinal(
81 const std::string& extension_id) const { 81 const std::string& extension_id) const {
82 return syncer::StringOrdinal(kFirstPage); 82 return syncer::StringOrdinal(kFirstPage);
83 } 83 }
84 84
85 void AppShellAppSorting::SetPageOrdinal( 85 void ShellAppSorting::SetPageOrdinal(
86 const std::string& extension_id, 86 const std::string& extension_id,
87 const syncer::StringOrdinal& new_page_ordinal) { 87 const syncer::StringOrdinal& new_page_ordinal) {
88 } 88 }
89 89
90 void AppShellAppSorting::ClearOrdinals(const std::string& extension_id) { 90 void ShellAppSorting::ClearOrdinals(const std::string& extension_id) {
91 } 91 }
92 92
93 int AppShellAppSorting::PageStringOrdinalAsInteger( 93 int ShellAppSorting::PageStringOrdinalAsInteger(
94 const syncer::StringOrdinal& page_ordinal) const { 94 const syncer::StringOrdinal& page_ordinal) const {
95 return 0; 95 return 0;
96 } 96 }
97 97
98 syncer::StringOrdinal AppShellAppSorting::PageIntegerAsStringOrdinal( 98 syncer::StringOrdinal ShellAppSorting::PageIntegerAsStringOrdinal(
99 size_t page_index) { 99 size_t page_index) {
100 return syncer::StringOrdinal(kFirstPage); 100 return syncer::StringOrdinal(kFirstPage);
101 } 101 }
102 102
103 void AppShellAppSorting::MarkExtensionAsHidden( 103 void ShellAppSorting::MarkExtensionAsHidden(
104 const std::string& extension_id) { 104 const std::string& extension_id) {
105 } 105 }
106 106
107 } // namespace apps 107 } // namespace apps
OLDNEW
« no previous file with comments | « apps/shell/shell_app_sorting.h ('k') | apps/shell/shell_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698