diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-06 16:46:11 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-06 16:46:11 +0000 |
commit | ce5c4504531cfd32972dfd123f98183c3706951a (patch) | |
tree | 679f14d1ea5738a6bedb752a4c61b7f3c50efde1 /chrome/common/page_action.h | |
parent | aec92f83d096ca57ab6ce515ae7063b8081b630e (diff) | |
download | chromium_src-ce5c4504531cfd32972dfd123f98183c3706951a.zip chromium_src-ce5c4504531cfd32972dfd123f98183c3706951a.tar.gz chromium_src-ce5c4504531cfd32972dfd123f98183c3706951a.tar.bz2 |
PageActions now work across tabs and windows.
The extension system now provides TabId to extensions so it is now possible to activate PageActions in other tabs besides the first in the tab strip. :)
BUG=None
TEST=None (requires a PageAction extension to test against).
Review URL: http://codereview.chromium.org/109046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15415 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/page_action.h')
-rw-r--r-- | chrome/common/page_action.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/chrome/common/page_action.h b/chrome/common/page_action.h index c22b96f..69bd238 100644 --- a/chrome/common/page_action.h +++ b/chrome/common/page_action.h @@ -45,11 +45,6 @@ class PageAction { tooltip_ = tooltip; } - // Sets the active tab and url for this PageAction. - void SetActiveTabIdAndUrl(int tab_id, const GURL& url); - // Returns true if the PageAction is active in the specified |tab_id| & |url|. - bool IsActive(int tab_id, const GURL& url) const; - private: // The id for the PageAction, for example: "RssPageAction". std::string id_; @@ -69,12 +64,6 @@ class PageAction { // The tooltip to show when the mouse hovers over the icon of the page action. std::string tooltip_; - - // The url of the page which the PageAction is currently active in. - GURL active_url_; - - // The tab ID for which the PageAction is currently active in. - int active_tab_id_; }; typedef std::map<std::string, PageAction*> PageActionMap; |