diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 21:23:35 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 21:23:35 +0000 |
commit | 67f7191aa0be7791da0c4d9f913b2a90c4eb4dae (patch) | |
tree | daaaf89c0c8f3e8473674282acde2f6e05c14f89 /chrome/browser/gtk/location_bar_view_gtk.h | |
parent | 76ac017bca97c5e45569c43c4aded1e287e2cb0b (diff) | |
download | chromium_src-67f7191aa0be7791da0c4d9f913b2a90c4eb4dae.zip chromium_src-67f7191aa0be7791da0c4d9f913b2a90c4eb4dae.tar.gz chromium_src-67f7191aa0be7791da0c4d9f913b2a90c4eb4dae.tar.bz2 |
Port PageActionPopupTest to Linux by filling in missing functionality in locationbarviewgtk.
BUG=30326
TEST=test passes
Review URL: http://codereview.chromium.org/507032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34876 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/location_bar_view_gtk.h')
-rw-r--r-- | chrome/browser/gtk/location_bar_view_gtk.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/gtk/location_bar_view_gtk.h b/chrome/browser/gtk/location_bar_view_gtk.h index 951d725..7f40709 100644 --- a/chrome/browser/gtk/location_bar_view_gtk.h +++ b/chrome/browser/gtk/location_bar_view_gtk.h @@ -114,6 +114,10 @@ class LocationBarViewGtk : public AutocompleteEditController, GtkWidget* widget() { return event_box_.get(); } + ExtensionAction* page_action() { return page_action_; } + + bool IsVisible() { return GTK_WIDGET_VISIBLE(widget()); } + // Called to notify the PageAction that it should determine whether to be // visible or hidden. |contents| is the TabContents that is active, |url| // is the current page URL. @@ -122,6 +126,9 @@ class LocationBarViewGtk : public AutocompleteEditController, // A callback from ImageLoadingTracker for when the image has loaded. virtual void OnImageLoaded(SkBitmap* image, size_t index); + // Simulate left mouse click on the page action button. + void TestActivatePageAction(); + private: static gboolean OnButtonPressed(GtkWidget* sender, GdkEventButton* event, PageActionViewGtk* page_action_view); |