#ifndef CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_
#define CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_
-#include "content/public/common/page_transition_types.h"
+#include "ui/base/page_transition_types.h"
#include "ui/base/window_open_disposition.h"
#include "url/gurl.h"
class WebContents;
}
+namespace extensions {
+class Extension;
+}
+
// The LocationBar class is a virtual interface, defining access to the
// window's location bar component. This class exists so that cross-platform
// components like the browser command system can talk to the platform
// The details necessary to open the user's desired omnibox match.
virtual GURL GetDestinationURL() const = 0;
virtual WindowOpenDisposition GetWindowOpenDisposition() const = 0;
- virtual content::PageTransition GetPageTransition() const = 0;
+ virtual ui::PageTransition GetPageTransition() const = 0;
// Accepts the current string of text entered in the location bar.
virtual void AcceptInput() = 0;
// Updates the state of the page actions.
virtual void UpdatePageActions() = 0;
+ // Updates the visibility of the bookmark star.
+ virtual void UpdateBookmarkStarVisibility() = 0;
+
// Called when the page-action data needs to be refreshed, e.g. when an
// extension is unloaded or crashes.
virtual void InvalidatePageActions() = 0;
+ // Shows the popup for the given |extension| and, if |grant_active_tab| is
+ // true, grants the extension active tab permissions.
+ // Returns true if a popup was shown.
+ virtual bool ShowPageActionPopup(const extensions::Extension* extension,
+ bool grant_active_tab) = 0;
+
// Updates the state of the button to open a PDF in Adobe Reader.
virtual void UpdateOpenPDFInReaderPrompt() = 0;