diff options
Diffstat (limited to 'chrome/browser/extensions/extension_browser_event_router.h')
-rw-r--r-- | chrome/browser/extensions/extension_browser_event_router.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_browser_event_router.h b/chrome/browser/extensions/extension_browser_event_router.h index bfd2205..a84749d 100644 --- a/chrome/browser/extensions/extension_browser_event_router.h +++ b/chrome/browser/extensions/extension_browser_event_router.h @@ -74,6 +74,7 @@ class ExtensionBrowserEventRouter : public TabStripModelObserver, virtual void TabReplacedAt(TabContents* old_contents, TabContents* new_contents, int index); + virtual void TabPinnedStateChanged(TabContents* contents, int index); virtual void TabStripEmpty(); // Page Action execute event. @@ -100,6 +101,11 @@ class ExtensionBrowserEventRouter : public TabStripModelObserver, // and Observe/NAV_ENTRY_COMMITTED. void TabUpdated(TabContents* contents, bool did_navigate); + // Packages |changed_properties| as a tab updated event for the tab |contents| + // and dispatches the event to the extension. + void DispatchTabUpdatedEvent(TabContents* contents, + DictionaryValue* changed_properties); + // Called to dispatch a deprecated style page action click event that was // registered like: // chrome.pageActions["name"].addListener(function(actionId, info){}) @@ -164,6 +170,10 @@ class ExtensionBrowserEventRouter : public TabStripModelObserver, GURL url_; }; + // Gets the TabEntry for the given |contents|. Returns TabEntry* if + // found, NULL if not. + TabEntry* GetTabEntry(const TabContents* contents); + std::map<int, TabEntry> tab_entries_; // The currently focused window. We keep this so as to avoid sending multiple |