Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Unified Diff: chrome/browser/ui/views/ash/launcher/launcher_updater.h

Issue 9702054: Revert 126764 - Added notion of currently active app / browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/ash/launcher/launcher_updater.h
===================================================================
--- chrome/browser/ui/views/ash/launcher/launcher_updater.h (revision 126791)
+++ chrome/browser/ui/views/ash/launcher/launcher_updater.h (working copy)
@@ -35,26 +35,6 @@
class LauncherUpdater : public TabStripModelObserver,
public LauncherFaviconLoader::Delegate {
public:
- // This API is to be used as part of testing only.
- class TestApi {
- public:
- explicit 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,
@@ -88,12 +68,6 @@
}
// TabStripModelObserver overrides:
- void ActivationChanged(TabContentsWrapper* tab, bool active);
- // 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,
int index,
@@ -156,13 +130,6 @@
// |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.

Powered by Google App Engine
This is Rietveld 408576698