diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-22 00:15:17 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-22 00:15:17 +0000 |
commit | c37e3b6de9ccfd2bc4c5f2852ae2e4b5ec9b985d (patch) | |
tree | e5df41c5242a176e955db360d5de40225fded383 /chrome/browser/extensions/extension_browser_event_router.h | |
parent | 7e3544bd5859cad57261bc4827686f266a8d3961 (diff) | |
download | chromium_src-c37e3b6de9ccfd2bc4c5f2852ae2e4b5ec9b985d.zip chromium_src-c37e3b6de9ccfd2bc4c5f2852ae2e4b5ec9b985d.tar.gz chromium_src-c37e3b6de9ccfd2bc4c5f2852ae2e4b5ec9b985d.tar.bz2 |
Adds support for phantom tabs. A pinned tab becomes a phantom tab when
it is closed, and effectively unloads the renderer and replaces it
with a new TabContents that loads when selected. A phantom tab is
currently rendered without a border. Phantom tabs do not prevent a
window from closing.
Long term only pinned app tabs will have the ability to be made
phantom, but this allows us to test the feature until app support is
all wired in.
BUG=32845
TEST=none yet
Review URL: http://codereview.chromium.org/553008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36815 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_browser_event_router.h')
-rw-r--r-- | chrome/browser/extensions/extension_browser_event_router.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/chrome/browser/extensions/extension_browser_event_router.h b/chrome/browser/extensions/extension_browser_event_router.h index a740f58..0b56c45 100644 --- a/chrome/browser/extensions/extension_browser_event_router.h +++ b/chrome/browser/extensions/extension_browser_event_router.h @@ -40,18 +40,20 @@ class ExtensionBrowserEventRouter : public TabStripModelObserver, void OnBrowserWindowReady(const Browser* browser); // TabStripModelObserver - void TabInsertedAt(TabContents* contents, int index, bool foreground); - void TabClosingAt(TabContents* contents, int index); - void TabDetachedAt(TabContents* contents, int index); - void TabSelectedAt(TabContents* old_contents, - TabContents* new_contents, - int index, - bool user_gesture); - void TabMoved(TabContents* contents, int from_index, int to_index, - bool pinned_state_changed); - void TabChangedAt(TabContents* contents, int index, - TabChangeType change_type); - void TabStripEmpty(); + virtual void TabInsertedAt(TabContents* contents, int index, bool foreground); + virtual void TabClosingAt(TabContents* contents, int index); + virtual void TabDetachedAt(TabContents* contents, int index); + virtual void TabSelectedAt(TabContents* old_contents, + TabContents* new_contents, + int index, + bool user_gesture); + virtual void TabMoved(TabContents* contents, int from_index, int to_index, + bool pinned_state_changed); + virtual void TabChangedAt(TabContents* contents, int index, + TabChangeType change_type); + virtual void TabReplacedAt(TabContents* old_contents, + TabContents* new_contents, int index); + virtual void TabStripEmpty(); // Page Action execute event. void PageActionExecuted(Profile* profile, |