OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "extensions/browser/null_app_sorting.h" | 5 #include "extensions/browser/null_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 extensions { | 18 namespace extensions { |
19 | 19 |
20 NullAppSorting::NullAppSorting() { | 20 NullAppSorting::NullAppSorting() { |
21 } | 21 } |
22 | 22 |
23 NullAppSorting::~NullAppSorting() { | 23 NullAppSorting::~NullAppSorting() { |
24 } | 24 } |
25 | 25 |
26 void NullAppSorting::SetExtensionScopedPrefs(ExtensionScopedPrefs* prefs) { | |
27 } | |
28 | |
29 void NullAppSorting::CheckExtensionScopedPrefs() const { | |
30 } | |
31 | |
32 void NullAppSorting::Initialize(const ExtensionIdList& extension_ids) { | |
33 } | |
34 | |
35 void NullAppSorting::FixNTPOrdinalCollisions() { | 26 void NullAppSorting::FixNTPOrdinalCollisions() { |
36 } | 27 } |
37 | 28 |
38 void NullAppSorting::EnsureValidOrdinals( | 29 void NullAppSorting::EnsureValidOrdinals( |
39 const std::string& extension_id, | 30 const std::string& extension_id, |
40 const syncer::StringOrdinal& suggested_page) { | 31 const syncer::StringOrdinal& suggested_page) { |
41 } | 32 } |
42 | 33 |
43 void NullAppSorting::OnExtensionMoved( | 34 void NullAppSorting::OnExtensionMoved( |
44 const std::string& moved_extension_id, | 35 const std::string& moved_extension_id, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 syncer::StringOrdinal NullAppSorting::PageIntegerAsStringOrdinal( | 86 syncer::StringOrdinal NullAppSorting::PageIntegerAsStringOrdinal( |
96 size_t page_index) { | 87 size_t page_index) { |
97 return syncer::StringOrdinal(kFirstPage); | 88 return syncer::StringOrdinal(kFirstPage); |
98 } | 89 } |
99 | 90 |
100 void NullAppSorting::SetExtensionVisible(const std::string& extension_id, | 91 void NullAppSorting::SetExtensionVisible(const std::string& extension_id, |
101 bool visible) { | 92 bool visible) { |
102 } | 93 } |
103 | 94 |
104 } // namespace extensions | 95 } // namespace extensions |
OLD | NEW |