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

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

Issue 155368: Fix double click item activation in right pane of bookmark manager.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void SizeColumn(GtkTreeViewColumn* column, 115 void SizeColumn(GtkTreeViewColumn* column,
116 const wchar_t* prefname); 116 const wchar_t* prefname);
117 117
118 // Calls SizeColumn() on each of the right tree view columns. 118 // Calls SizeColumn() on each of the right tree view columns.
119 void SizeColumns(); 119 void SizeColumns();
120 120
121 // Save the column widths into the pref service. Column widths are stored 121 // Save the column widths into the pref service. Column widths are stored
122 // separately depending on whether the path column is showing. 122 // separately depending on whether the path column is showing.
123 void SaveColumnConfiguration(); 123 void SaveColumnConfiguration();
124 124
125 // Flush the saved mousedown. Should only be called when |delaying_mousedown_|
126 // is true.
127 void SendDelayedMousedown();
128
125 GtkTreeSelection* left_selection() { 129 GtkTreeSelection* left_selection() {
126 return gtk_tree_view_get_selection(GTK_TREE_VIEW(left_tree_view_)); 130 return gtk_tree_view_get_selection(GTK_TREE_VIEW(left_tree_view_));
127 } 131 }
128 132
129 GtkTreeSelection* right_selection() { 133 GtkTreeSelection* right_selection() {
130 return gtk_tree_view_get_selection(GTK_TREE_VIEW(right_tree_view_)); 134 return gtk_tree_view_get_selection(GTK_TREE_VIEW(right_tree_view_));
131 } 135 }
132 136
133 // Use these to temporarily disable updating the right store. You can stack 137 // Use these to temporarily disable updating the right store. You can stack
134 // calls to Suppress(), but they should always be matched by an equal number 138 // calls to Suppress(), but they should always be matched by an equal number
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // The submenu the item pops up. 243 // The submenu the item pops up.
240 scoped_ptr<BookmarkContextMenu> organize_menu_; 244 scoped_ptr<BookmarkContextMenu> organize_menu_;
241 // Whether the menu refers to the left selection. 245 // Whether the menu refers to the left selection.
242 bool organize_is_for_left_; 246 bool organize_is_for_left_;
243 247
244 // Factory used for delaying search. 248 // Factory used for delaying search.
245 ScopedRunnableMethodFactory<BookmarkManagerGtk> search_factory_; 249 ScopedRunnableMethodFactory<BookmarkManagerGtk> search_factory_;
246 250
247 scoped_refptr<SelectFileDialog> select_file_dialog_; 251 scoped_refptr<SelectFileDialog> select_file_dialog_;
248 252
249 // These two variables used for the workaround for http://crbug.com/15240. 253 // These variables are used for the workaround for http://crbug.com/15240.
250 // The last mouse down we got. Only valid while |delaying_mousedown| is true. 254 // The last mouse down we got. Only valid while |delaying_mousedown| is true.
251 GdkEventButton mousedown_event_; 255 GdkEventButton mousedown_event_;
252 bool delaying_mousedown_; 256 bool delaying_mousedown_;
257 // This is true while we are propagating a delayed mousedown. It is used to
258 // tell the button press handler to ignore the event.
259 bool sending_delayed_mousedown_;
253 }; 260 };
254 261
255 #endif // CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_ 262 #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