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

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

Issue 210036: Make it possible to edit bookmark folder names inline. This (Closed)
Patch Set: comments Created 11 years, 3 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
« no previous file with comments | « chrome/browser/gtk/bookmark_editor_gtk.cc ('k') | 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 BookmarkManagerGtk* bm); 244 BookmarkManagerGtk* bm);
245 245
246 static gboolean OnTreeViewButtonRelease(GtkWidget* tree_view, 246 static gboolean OnTreeViewButtonRelease(GtkWidget* tree_view,
247 GdkEventButton* button, 247 GdkEventButton* button,
248 BookmarkManagerGtk* bm); 248 BookmarkManagerGtk* bm);
249 249
250 static gboolean OnTreeViewKeyPress(GtkWidget* tree_view, 250 static gboolean OnTreeViewKeyPress(GtkWidget* tree_view,
251 GdkEventKey* key, 251 GdkEventKey* key,
252 BookmarkManagerGtk* bm); 252 BookmarkManagerGtk* bm);
253 253
254 // Callback from inline edits to folder names. This changes the name in the
255 // model.
256 static void OnFolderNameEdited(GtkCellRendererText* render,
257 gchar* path,
258 gchar* new_folder_name,
259 BookmarkManagerGtk* bm);
260
254 // Tools menu item callbacks. 261 // Tools menu item callbacks.
255 static void OnImportItemActivated(GtkMenuItem* menuitem, 262 static void OnImportItemActivated(GtkMenuItem* menuitem,
256 BookmarkManagerGtk* bm); 263 BookmarkManagerGtk* bm);
257 static void OnExportItemActivated(GtkMenuItem* menuitem, 264 static void OnExportItemActivated(GtkMenuItem* menuitem,
258 BookmarkManagerGtk* bm); 265 BookmarkManagerGtk* bm);
259 266
260 // Window callbacks. 267 // Window callbacks.
261 static gboolean OnWindowDestroyedThunk(GtkWidget* window, gpointer self) { 268 static gboolean OnWindowDestroyedThunk(GtkWidget* window, gpointer self) {
262 return reinterpret_cast<BookmarkManagerGtk*>(self)-> 269 return reinterpret_cast<BookmarkManagerGtk*>(self)->
263 OnWindowDestroyed(window); 270 OnWindowDestroyed(window);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 bool sending_delayed_mousedown_; 345 bool sending_delayed_mousedown_;
339 346
340 // This is used to avoid recursively calling our right click handler. It is 347 // This is used to avoid recursively calling our right click handler. It is
341 // only true when a right click is already being handled. 348 // only true when a right click is already being handled.
342 bool ignore_rightclicks_; 349 bool ignore_rightclicks_;
343 350
344 GtkAccelGroup* accel_group_; 351 GtkAccelGroup* accel_group_;
345 }; 352 };
346 353
347 #endif // CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_ 354 #endif // CHROME_BROWSER_GTK_BOOKMARK_MANAGER_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/bookmark_editor_gtk.cc ('k') | chrome/browser/gtk/bookmark_manager_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698