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>2009-08-13 23:44:02 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-13 23:44:02 +0000
commit7a613e3ae4aa9feaa45b93b547dcbe01177808c8 (patch)
tree82f7cf3320877885f43ca1ef060e5975a440d997 /chrome/browser/gtk/bookmark_bar_gtk.h
parentb6887a6c999a63d04a513edd227a939f2bfa1aa6 (diff)
downloadchromium_src-7a613e3ae4aa9feaa45b93b547dcbe01177808c8.zip
chromium_src-7a613e3ae4aa9feaa45b93b547dcbe01177808c8.tar.gz
chromium_src-7a613e3ae4aa9feaa45b93b547dcbe01177808c8.tar.bz2
GTK: Add view ids to our widgets. These will be used for testing.
Also add unit test to test test infrastructure. BUG=19214 Review URL: http://codereview.chromium.org/164519 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23392 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_bar_gtk.h')
-rw-r--r--chrome/browser/gtk/bookmark_bar_gtk.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.h b/chrome/browser/gtk/bookmark_bar_gtk.h
index 3136527..53f7caa 100644
--- a/chrome/browser/gtk/bookmark_bar_gtk.h
+++ b/chrome/browser/gtk/bookmark_bar_gtk.h
@@ -12,6 +12,7 @@
#include "app/slide_animation.h"
#include "base/scoped_ptr.h"
#include "chrome/browser/bookmarks/bookmark_model_observer.h"
+#include "chrome/browser/gtk/view_id_util.h"
#include "chrome/common/notification_observer.h"
#include "chrome/common/notification_registrar.h"
#include "chrome/common/owned_widget_gtk.h"
@@ -43,6 +44,9 @@ class BookmarkBarGtk : public AnimationDelegate,
// Returns the current browser.
Browser* browser() const { return browser_; }
+ // Returns the top level widget.
+ GtkWidget* widget() const { return event_box_.get(); }
+
// Sets the PageNavigator that is used when the user selects an entry on
// the bookmark bar.
void SetPageNavigator(PageNavigator* navigator);