From 67f7191aa0be7791da0c4d9f913b2a90c4eb4dae Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Thu, 17 Dec 2009 21:23:35 +0000 Subject: 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 --- chrome/browser/gtk/location_bar_view_gtk.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'chrome/browser/gtk/location_bar_view_gtk.h') 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); -- cgit v1.1