OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 EXTENSIONS_BROWSER_APP_SORTING_H_ | 5 #ifndef EXTENSIONS_BROWSER_APP_SORTING_H_ |
6 #define EXTENSIONS_BROWSER_APP_SORTING_H_ | 6 #define EXTENSIONS_BROWSER_APP_SORTING_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // Convert the page StringOrdinal value to its integer equivalent. This takes | 102 // Convert the page StringOrdinal value to its integer equivalent. This takes |
103 // O(# of apps) worst-case. | 103 // O(# of apps) worst-case. |
104 virtual int PageStringOrdinalAsInteger( | 104 virtual int PageStringOrdinalAsInteger( |
105 const syncer::StringOrdinal& page_ordinal) const = 0; | 105 const syncer::StringOrdinal& page_ordinal) const = 0; |
106 | 106 |
107 // Converts the page index integer to its StringOrdinal equivalent. This takes | 107 // Converts the page index integer to its StringOrdinal equivalent. This takes |
108 // O(# of apps) worst-case. | 108 // O(# of apps) worst-case. |
109 virtual syncer::StringOrdinal PageIntegerAsStringOrdinal( | 109 virtual syncer::StringOrdinal PageIntegerAsStringOrdinal( |
110 size_t page_index) = 0; | 110 size_t page_index) = 0; |
111 | 111 |
112 // Hidden extensions don't appear in the new tab page. | 112 // Hides an extension from the new tab page, or makes a previously hidden |
113 virtual void MarkExtensionAsHidden(const std::string& extension_id) = 0; | 113 // extension visible. |
| 114 virtual void SetExtensionVisible(const std::string& extension_id, |
| 115 bool visible) = 0; |
114 | 116 |
115 private: | 117 private: |
116 DISALLOW_COPY_AND_ASSIGN(AppSorting); | 118 DISALLOW_COPY_AND_ASSIGN(AppSorting); |
117 }; | 119 }; |
118 | 120 |
119 } // namespace extensions | 121 } // namespace extensions |
120 | 122 |
121 #endif // EXTENSIONS_BROWSER_APP_SORTING_H_ | 123 #endif // EXTENSIONS_BROWSER_APP_SORTING_H_ |
OLD | NEW |