summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h')
-rw-r--r--chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h b/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h
index 9dba82a..9c279f6 100644
--- a/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h
+++ b/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h
@@ -24,8 +24,8 @@ class ActivationClient;
}
class ChromeLauncherController;
-class LauncherItemController;
class ShellWindow;
+class ShellWindowLauncherItemController;
// ShellWindowLauncherController observes the Shell Window registry and the
// aura window manager. It handles adding and removing launcher items from
@@ -50,13 +50,18 @@ class ShellWindowLauncherController
virtual void OnWindowActivated(aura::Window* gained_active,
aura::Window* lost_active) OVERRIDE;
- private:
- class AppLauncherItemController;
+ // Returns the number of running applications.
+ int NumberOfAppsRunning();
+
+ // Activate the application with the given index.
+ void ActivateAppAt(int index);
- typedef std::map<std::string, AppLauncherItemController*> AppControllerMap;
+ private:
+ typedef std::map<std::string, ShellWindowLauncherItemController*>
+ AppControllerMap;
typedef std::map<aura::Window*, std::string> WindowToAppLauncherIdMap;
- AppLauncherItemController* ControllerForWindow(aura::Window* window);
+ ShellWindowLauncherItemController* ControllerForWindow(aura::Window* window);
ChromeLauncherController* owner_;
extensions::ShellWindowRegistry* registry_; // Unowned convenience pointer