Index: chrome/browser/ui/location_bar/location_bar.h |
diff --git a/chrome/browser/ui/location_bar/location_bar.h b/chrome/browser/ui/location_bar/location_bar.h |
index 41391e503ac184a56d04c192641d41b5d0e5e2fe..bd8089112993d0759f21f830457914fa1b25bf13 100644 |
--- a/chrome/browser/ui/location_bar/location_bar.h |
+++ b/chrome/browser/ui/location_bar/location_bar.h |
@@ -18,6 +18,10 @@ namespace content { |
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 |
@@ -58,6 +62,12 @@ class LocationBar { |
// 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; |