| Index: chrome/browser/ui/views/ash/launcher/launcher_updater.h
|
| diff --git a/chrome/browser/ui/views/ash/launcher/launcher_updater.h b/chrome/browser/ui/views/ash/launcher/launcher_updater.h
|
| index 2e0d4c2570d04bcd594dc91b274fb0a52dc25583..1a0551d80e23fa2acd10e090b05632f49d4e1211 100644
|
| --- a/chrome/browser/ui/views/ash/launcher/launcher_updater.h
|
| +++ b/chrome/browser/ui/views/ash/launcher/launcher_updater.h
|
| @@ -32,6 +32,26 @@ class Window;
|
| // window up to date as the tab strip changes.
|
| class LauncherUpdater : public TabStripModelObserver {
|
| public:
|
| + // This API is to be used as part of testing only.
|
| + explicit class TestApi {
|
| + public:
|
| + TestApi(LauncherUpdater* launcher_updater)
|
| + : launcher_updater_(launcher_updater) {}
|
| + virtual ~TestApi() {}
|
| +
|
| + // Returns the launcher id for |tab| if it's an app otherwise returns the
|
| + // id for the browser itself.
|
| + ash::LauncherID GetLauncherID(TabContentsWrapper* tab) {
|
| + return launcher_updater_->GetLauncherID(tab);
|
| + }
|
| +
|
| + // Returns the launcher id for the browser window.
|
| + ash::LauncherID item_id() const { return launcher_updater_->item_id_; }
|
| +
|
| + private:
|
| + LauncherUpdater* launcher_updater_;
|
| + };
|
| +
|
| enum Type {
|
| TYPE_APP,
|
| TYPE_PANEL,
|
| @@ -60,6 +80,10 @@ class LauncherUpdater : public TabStripModelObserver {
|
|
|
| TabContentsWrapper* GetTab(ash::LauncherID id);
|
|
|
| + // Call to indicate that the window the tabcontents are in has changed its
|
| + // activation state.
|
| + void BrowserActivationStateChanged();
|
| +
|
| // TabStripModel overrides:
|
| virtual void ActiveTabChanged(TabContentsWrapper* old_contents,
|
| TabContentsWrapper* new_contents,
|
| @@ -120,6 +144,13 @@ class LauncherUpdater : public TabStripModelObserver {
|
| // |tab| is set to the TabContentsWrapper for the app tab.
|
| bool ContainsID(ash::LauncherID id, TabContentsWrapper** tab);
|
|
|
| + // Returns the launcher id for |tab| if it's an app otherwise returns the
|
| + // id for the browser itself.
|
| + ash::LauncherID GetLauncherID(TabContentsWrapper* tab);
|
| +
|
| + // Retrieves the running status of |tab|.
|
| + ash::LauncherItemStatus GetStatusForTab(TabContentsWrapper* tab);
|
| +
|
| ash::LauncherModel* launcher_model();
|
|
|
| // Browser window we're in.
|
|
|