Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Side by Side Diff: chrome/browser/gtk/bookmark_manager_gtk.h

Issue 151134: Bookmark manager polish:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove cruft Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/gtk/bookmark_manager_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // Get the nodes that are selected in the right tree view. 104 // Get the nodes that are selected in the right tree view.
105 std::vector<const BookmarkNode*> GetRightSelection(); 105 std::vector<const BookmarkNode*> GetRightSelection();
106 106
107 // Set the fields for a row. 107 // Set the fields for a row.
108 void SetRightSideColumnValues(int row, GtkTreeIter* iter); 108 void SetRightSideColumnValues(int row, GtkTreeIter* iter);
109 109
110 // Stick update the right store to reflect |row| from |right_tree_model_|. 110 // Stick update the right store to reflect |row| from |right_tree_model_|.
111 void AddNodeToRightStore(int row); 111 void AddNodeToRightStore(int row);
112 112
113 // Set the size of a column based on the user prefs, and also sets the sizing
114 // properties of the column.
115 void SizeColumn(GtkTreeViewColumn* column,
116 const wchar_t* prefname);
117
118 // Calls SizeColumn() on each of the right tree view columns.
119 void SizeColumns();
120
121 // Save the column widths into the pref service.
122 void SaveColumnConfiguration();
123
113 GtkTreeSelection* left_selection() { 124 GtkTreeSelection* left_selection() {
114 return gtk_tree_view_get_selection(GTK_TREE_VIEW(left_tree_view_)); 125 return gtk_tree_view_get_selection(GTK_TREE_VIEW(left_tree_view_));
115 } 126 }
116 127
117 GtkTreeSelection* right_selection() { 128 GtkTreeSelection* right_selection() {
118 return gtk_tree_view_get_selection(GTK_TREE_VIEW(right_tree_view_)); 129 return gtk_tree_view_get_selection(GTK_TREE_VIEW(right_tree_view_));
119 } 130 }
120 131
121 // Use these to temporarily disable updating the right store. You can stack 132 // Use these to temporarily disable updating the right store. You can stack
122 // calls to Suppress(), but they should always be matched by an equal number 133 // calls to Suppress(), but they should always be matched by an equal number
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 enum { 221 enum {
211 RIGHT_PANE_PIXBUF, 222 RIGHT_PANE_PIXBUF,
212 RIGHT_PANE_TITLE, 223 RIGHT_PANE_TITLE,
213 RIGHT_PANE_URL, 224 RIGHT_PANE_URL,
214 RIGHT_PANE_PATH, 225 RIGHT_PANE_PATH,
215 RIGHT_PANE_ID, 226 RIGHT_PANE_ID,
216 RIGHT_PANE_NUM 227 RIGHT_PANE_NUM
217 }; 228 };
218 GtkTreeStore* left_store_; 229 GtkTreeStore* left_store_;
219 GtkListStore* right_store_; 230 GtkListStore* right_store_;
231 GtkTreeViewColumn* title_column_;
232 GtkTreeViewColumn* url_column_;
220 GtkTreeViewColumn* path_column_; 233 GtkTreeViewColumn* path_column_;
221 scoped_ptr<BookmarkTableModel> right_tree_model_; 234 scoped_ptr<BookmarkTableModel> right_tree_model_;
222 235
223 // The Organize menu item. 236 // The Organize menu item.
224 GtkWidget* organize_; 237 GtkWidget* organize_;
225 // The submenu the item pops up. 238 // The submenu the item pops up.
226 scoped_ptr<BookmarkContextMenu> organize_menu_; 239 scoped_ptr<BookmarkContextMenu> organize_menu_;
227 // Whether the menu refers to the left selection. 240 // Whether the menu refers to the left selection.
228 bool organize_is_for_left_; 241 bool organize_is_for_left_;
229 242
230 // Factory used for delaying search. 243 // Factory used for delaying search.
231 ScopedRunnableMethodFactory<BookmarkManagerGtk> search_factory_; 244 ScopedRunnableMethodFactory<BookmarkManagerGtk> search_factory_;
232 245
233 scoped_refptr<SelectFileDialog> select_file_dialog_; 246 scoped_refptr<SelectFileDialog> select_file_dialog_;
234 247
235 // These two variables used for the workaround for http://crbug.com/15240. 248 // These two variables used for the workaround for http://crbug.com/15240.
236 // The last mouse down we got. Only valid while |delaying_mousedown| is true. 249 // The last mouse down we got. Only valid while |delaying_mousedown| is true.
237 GdkEventButton mousedown_event_; 250 GdkEventButton mousedown_event_;
238 bool delaying_mousedown_; 251 bool delaying_mousedown_;
239 }; 252 };
240 253
241 #endif // CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_ 254 #endif // CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/bookmark_manager_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698