Chromium Code Reviews| Index: chrome/browser/extensions/extension_toolbar_model.h |
| diff --git a/chrome/browser/extensions/extension_toolbar_model.h b/chrome/browser/extensions/extension_toolbar_model.h |
| index df01de5d17281de69b7072048f8efca77b573e26..403c581b014c0a04477772951b5a01607754fc93 100644 |
| --- a/chrome/browser/extensions/extension_toolbar_model.h |
| +++ b/chrome/browser/extensions/extension_toolbar_model.h |
| @@ -48,6 +48,10 @@ class ExtensionToolbarModel : public content::NotificationObserver { |
| virtual void BrowserActionMoved(const extensions::Extension* extension, |
| int index) {} |
| + // The browser action should show the popup now. |
|
Finnur
2013/10/15 10:44:21
nit: The browser action for |extension| should...
justinlin
2013/10/16 07:06:48
Done.
|
| + virtual void BrowserActionShowPopup( |
| + const extensions::Extension* extension) {} |
| + |
| // Called when the model has finished loading. |
| virtual void ModelLoaded() {} |
| @@ -59,6 +63,7 @@ class ExtensionToolbarModel : public content::NotificationObserver { |
| void AddObserver(Observer* observer); |
| void RemoveObserver(Observer* observer); |
| void MoveBrowserAction(const extensions::Extension* extension, int index); |
| + void ShowBrowserActionPopup(const extensions::Extension* extension); |
| // Executes the browser action for an extension and returns the action that |
| // the UI should perform in response. |
| // |popup_url_out| will be set if the extension should show a popup, with |
| @@ -66,6 +71,9 @@ class ExtensionToolbarModel : public content::NotificationObserver { |
| Action ExecuteBrowserAction(const extensions::Extension* extension, |
| Browser* browser, |
| GURL* popup_url_out); |
| + // Retrieves the URL that should be loaded in the popup for an extension |
| + // without granting host permissions for the tab. Used for the showPopup API. |
| + GURL GetPopupUrl(const extensions::Extension* extension, Browser* browser); |
| // If count == size(), this will set the visible icon count to -1, meaning |
| // "show all actions". |
| void SetVisibleIconCount(int count); |