OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.TIT | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.TIT |
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_GTK_BOOKMARK_MANAGER_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_ |
6 #define CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_ | 6 #define CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // Get the node from |model| at |iter|. | 69 // Get the node from |model| at |iter|. |
70 BookmarkNode* GetNodeAt(GtkTreeModel* model, GtkTreeIter* iter); | 70 BookmarkNode* GetNodeAt(GtkTreeModel* model, GtkTreeIter* iter); |
71 | 71 |
72 // Get the node that is selected in the left tree view. | 72 // Get the node that is selected in the left tree view. |
73 BookmarkNode* GetFolder(); | 73 BookmarkNode* GetFolder(); |
74 | 74 |
75 // Get the nodes that are selected in the right tree view. | 75 // Get the nodes that are selected in the right tree view. |
76 std::vector<BookmarkNode*> GetRightSelection(); | 76 std::vector<BookmarkNode*> GetRightSelection(); |
77 | 77 |
78 // Stick node in the store that backs the right-side tree view. | 78 // Stick node in the store that backs the right-side tree view. |
79 void AppendNodeToRightStore(BookmarkNode* node, GtkTreeIter* iter); | 79 void AppendNodeToRightStore(BookmarkNode* node, int index); |
80 | 80 |
81 GtkTreeSelection* left_selection() { | 81 GtkTreeSelection* left_selection() { |
82 return gtk_tree_view_get_selection(GTK_TREE_VIEW(left_tree_view_)); | 82 return gtk_tree_view_get_selection(GTK_TREE_VIEW(left_tree_view_)); |
83 } | 83 } |
84 | 84 |
85 GtkTreeSelection* right_selection() { | 85 GtkTreeSelection* right_selection() { |
86 return gtk_tree_view_get_selection(GTK_TREE_VIEW(right_tree_view_)); | 86 return gtk_tree_view_get_selection(GTK_TREE_VIEW(right_tree_view_)); |
87 } | 87 } |
88 | 88 |
89 // Use these to temporarily disable updating the right store. You can stack | 89 // Use these to temporarily disable updating the right store. You can stack |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 RIGHT_PANE_NUM | 150 RIGHT_PANE_NUM |
151 }; | 151 }; |
152 GtkTreeStore* left_store_; | 152 GtkTreeStore* left_store_; |
153 GtkListStore* right_store_; | 153 GtkListStore* right_store_; |
154 int update_suppressions_; | 154 int update_suppressions_; |
155 | 155 |
156 scoped_ptr<BookmarkContextMenu> organize_menu_; | 156 scoped_ptr<BookmarkContextMenu> organize_menu_; |
157 }; | 157 }; |
158 | 158 |
159 #endif // CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_ | 159 #endif // CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_ |
OLD | NEW |