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

Unified Diff: chrome/browser/gtk/bookmark_editor_gtk.h

Issue 4973001: gtk: Add context menu to Bookmark Editor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make enum private Created 10 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/bookmark_editor_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/bookmark_editor_gtk.h
diff --git a/chrome/browser/gtk/bookmark_editor_gtk.h b/chrome/browser/gtk/bookmark_editor_gtk.h
index fda876910a31a31dcc632c6d247db27367547780..debec747b63fb3985c875e6a29274a541b87f987 100644
--- a/chrome/browser/gtk/bookmark_editor_gtk.h
+++ b/chrome/browser/gtk/bookmark_editor_gtk.h
@@ -9,6 +9,7 @@
#include "app/gtk_integers.h"
#include "app/gtk_signal.h"
#include "base/gtest_prod_util.h"
+#include "base/scoped_ptr.h"
#include "base/string16.h"
#include "chrome/browser/bookmarks/bookmark_editor.h"
#include "chrome/browser/bookmarks/bookmark_model_observer.h"
@@ -16,6 +17,7 @@
class GURL;
typedef union _GdkEvent GdkEvent;
+typedef struct _GdkEventButton GdkEventButton;
typedef struct _GtkTreeIter GtkTreeIter;
typedef struct _GtkTreeSelection GtkTreeSelection;
typedef struct _GtkTreeStore GtkTreeStore;
@@ -47,6 +49,9 @@ class BookmarkEditorGtk : public BookmarkEditor,
void Close();
private:
+ class ContextMenuController;
+ friend class ContextMenuController;
+
void Init(GtkWindow* parent_window);
// BookmarkModel observer methods. Any structural change results in
@@ -104,6 +109,13 @@ class BookmarkEditorGtk : public BookmarkEditor,
CHROMEGTK_CALLBACK_0(BookmarkEditorGtk, void, OnNewFolderClicked);
+ CHROMEGTK_CALLBACK_1(BookmarkEditorGtk, gboolean, OnTreeViewButtonPressEvent,
+ GdkEventButton*);
+
+ void ShowContextMenu();
+
+ void NewFolder();
+
// Profile the entry is from.
Profile* profile_;
@@ -141,6 +153,9 @@ class BookmarkEditorGtk : public BookmarkEditor,
// Is the tree shown?
bool show_tree_;
+ // The context menu controller.
+ scoped_ptr<ContextMenuController> menu_controller_;
+
DISALLOW_COPY_AND_ASSIGN(BookmarkEditorGtk);
};
« no previous file with comments | « no previous file | chrome/browser/gtk/bookmark_editor_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698