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 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_PREFS_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_PREFS_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_PREFS_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_PREFS_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 25 matching lines...) Expand all Loading... | |
36 ITEM_TYPE_INVALID = 0, | 36 ITEM_TYPE_INVALID = 0, |
37 ITEM_TYPE_BEGIN, | 37 ITEM_TYPE_BEGIN, |
38 APP_ITEM = ITEM_TYPE_BEGIN, | 38 APP_ITEM = ITEM_TYPE_BEGIN, |
39 FOLDER_ITEM, | 39 FOLDER_ITEM, |
40 | 40 |
41 // Do not change the order of this enum. | 41 // Do not change the order of this enum. |
42 // When adding values, remember to update ITEM_TYPE_END. | 42 // When adding values, remember to update ITEM_TYPE_END. |
43 ITEM_TYPE_END = FOLDER_ITEM, | 43 ITEM_TYPE_END = FOLDER_ITEM, |
44 }; | 44 }; |
45 AppListInfo(); | 45 AppListInfo(); |
46 AppListInfo(const AppListInfo& other); | |
tapted
2016/02/24 00:36:13
Pretty sure this can be `= delete` -- only the ass
vmpstr
2016/02/24 00:43:06
If I delete it, then there's a compiler error on t
| |
46 ~AppListInfo(); | 47 ~AppListInfo(); |
47 scoped_ptr<base::DictionaryValue> CreateDictFromAppListInfo() const; | 48 scoped_ptr<base::DictionaryValue> CreateDictFromAppListInfo() const; |
48 | 49 |
49 static scoped_ptr<AppListPrefs::AppListInfo> CreateAppListInfoFromDict( | 50 static scoped_ptr<AppListPrefs::AppListInfo> CreateAppListInfoFromDict( |
50 const base::DictionaryValue* item_dict); | 51 const base::DictionaryValue* item_dict); |
51 | 52 |
52 // The id of the folder containing this item. | 53 // The id of the folder containing this item. |
53 std::string parent_id; | 54 std::string parent_id; |
54 | 55 |
55 // The name of this item. | 56 // The name of this item. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
88 explicit AppListPrefs(PrefService* pref_service); | 89 explicit AppListPrefs(PrefService* pref_service); |
89 | 90 |
90 PrefService* pref_service_; | 91 PrefService* pref_service_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(AppListPrefs); | 93 DISALLOW_COPY_AND_ASSIGN(AppListPrefs); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace app_list | 96 } // namespace app_list |
96 | 97 |
97 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_PREFS_H_ | 98 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_PREFS_H_ |
OLD | NEW |