OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BOOKMARKS_RECENTLY_USED_FOLDERS_COMBO_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_BOOKMARKS_RECENTLY_USED_FOLDERS_COMBO_MODEL_H_ |
6 #define CHROME_BROWSER_UI_BOOKMARKS_RECENTLY_USED_FOLDERS_COMBO_MODEL_H_ | 6 #define CHROME_BROWSER_UI_BOOKMARKS_RECENTLY_USED_FOLDERS_COMBO_MODEL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "components/bookmarks/core/browser/bookmark_model_observer.h" | 13 #include "components/bookmarks/browser/bookmark_model_observer.h" |
14 #include "ui/base/models/combobox_model.h" | 14 #include "ui/base/models/combobox_model.h" |
15 | 15 |
16 class BookmarkModel; | 16 class BookmarkModel; |
17 class BookmarkNode; | 17 class BookmarkNode; |
18 | 18 |
19 // Model for the combobox showing the list of folders to choose from. The | 19 // Model for the combobox showing the list of folders to choose from. The |
20 // list always contains the Bookmarks Bar, Other Bookmarks and the parent | 20 // list always contains the Bookmarks Bar, Other Bookmarks and the parent |
21 // folder. The list also contains an extra item that shows the text | 21 // folder. The list also contains an extra item that shows the text |
22 // "Choose Another Folder...". | 22 // "Choose Another Folder...". |
23 class RecentlyUsedFoldersComboModel : public ui::ComboboxModel, | 23 class RecentlyUsedFoldersComboModel : public ui::ComboboxModel, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 // The index of the original parent folder. | 85 // The index of the original parent folder. |
86 int node_parent_index_; | 86 int node_parent_index_; |
87 | 87 |
88 ObserverList<ui::ComboboxModelObserver> observers_; | 88 ObserverList<ui::ComboboxModelObserver> observers_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(RecentlyUsedFoldersComboModel); | 90 DISALLOW_COPY_AND_ASSIGN(RecentlyUsedFoldersComboModel); |
91 }; | 91 }; |
92 | 92 |
93 #endif // CHROME_BROWSER_UI_BOOKMARKS_RECENTLY_USED_FOLDERS_COMBO_MODEL_H_ | 93 #endif // CHROME_BROWSER_UI_BOOKMARKS_RECENTLY_USED_FOLDERS_COMBO_MODEL_H_ |
OLD | NEW |