summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/bookmark_bar_gtk.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-04 00:43:29 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-04 00:43:29 +0000
commit02af16bb383ddf8ff61a865a46c0f04a9d0191b6 (patch)
treea89bf498269db89dfe632c46cf70ec5a7f8ffa4c /chrome/browser/gtk/bookmark_bar_gtk.h
parent6069421e89f8ad6e76a9fb52a4f97df2020c3374 (diff)
downloadchromium_src-02af16bb383ddf8ff61a865a46c0f04a9d0191b6.zip
chromium_src-02af16bb383ddf8ff61a865a46c0f04a9d0191b6.tar.gz
chromium_src-02af16bb383ddf8ff61a865a46c0f04a9d0191b6.tar.bz2
Unfork BookmarkMenuGtk and BookmarkMenuController.
This is step 2 of 3. bookmark_context_menu_controller_gtk will eventually replace bookmark_context_menu_controller; for now it is separate because getting Windows to use it is another huge hassle. BUG=32830 TEST=manual + trybots Review URL: http://codereview.chromium.org/563017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38056 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_bar_gtk.h')
-rw-r--r--chrome/browser/gtk/bookmark_bar_gtk.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.h b/chrome/browser/gtk/bookmark_bar_gtk.h
index 2770fc5..0c6813e 100644
--- a/chrome/browser/gtk/bookmark_bar_gtk.h
+++ b/chrome/browser/gtk/bookmark_bar_gtk.h
@@ -13,6 +13,7 @@
#include "app/slide_animation.h"
#include "base/gfx/size.h"
#include "base/scoped_ptr.h"
+#include "chrome/browser/bookmarks/bookmark_context_menu_controller_gtk.h"
#include "chrome/browser/bookmarks/bookmark_model_observer.h"
#include "chrome/browser/gtk/bookmark_bar_instructions_gtk.h"
#include "chrome/browser/gtk/menu_bar_helper.h"
@@ -23,7 +24,6 @@
#include "chrome/common/owned_widget_gtk.h"
#include "testing/gtest/include/gtest/gtest_prod.h"
-class BookmarkContextMenuGtk;
class BookmarkMenuController;
class Browser;
class BrowserWindowGtk;
@@ -39,7 +39,8 @@ class BookmarkBarGtk : public AnimationDelegate,
public BookmarkModelObserver,
public MenuBarHelper::Delegate,
public NotificationObserver,
- public BookmarkBarInstructionsGtk::Delegate {
+ public BookmarkBarInstructionsGtk::Delegate,
+ public BookmarkContextMenuControllerDelegate {
FRIEND_TEST(BookmarkBarGtkUnittest, DisplaysHelpMessageOnEmpty);
FRIEND_TEST(BookmarkBarGtkUnittest, HidesHelpMessageWithBookmark);
FRIEND_TEST(BookmarkBarGtkUnittest, BuildsButtons);
@@ -106,6 +107,9 @@ class BookmarkBarGtk : public AnimationDelegate,
// The NTP needs to have access to this.
static const int kBookmarkBarNTPHeight;
+ // BookmarkContextMenuController::Delegate implementation --------------------
+ virtual void CloseMenu();
+
private:
// Helper function which generates GtkToolItems for |bookmark_toolbar_|.
void CreateAllBookmarkButtons();
@@ -352,7 +356,7 @@ class BookmarkBarGtk : public AnimationDelegate,
// The last displayed right click menu, or NULL if no menus have been
// displayed yet.
// The controller.
- scoped_ptr<BookmarkContextMenuGtk> current_context_menu_controller_;
+ scoped_ptr<BookmarkContextMenuController> current_context_menu_controller_;
// The view.
scoped_ptr<MenuGtk> current_context_menu_;