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

Unified Diff: chrome/browser/ui/ash/launcher/app_window_launcher_controller.h

Issue 166903006: Move *ShellWindowLauncher* to *AppWindowLauncher* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missed a spot Created 6 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/ui/ash/launcher/app_window_launcher_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/launcher/app_window_launcher_controller.h
diff --git a/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h b/chrome/browser/ui/ash/launcher/app_window_launcher_controller.h
similarity index 76%
rename from chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h
rename to chrome/browser/ui/ash/launcher/app_window_launcher_controller.h
index 5b9dacab932238516025e613727f1e421bd6bad3..390721b8207704b7aa563abbe8143ece244291f2 100644
--- a/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h
+++ b/chrome/browser/ui/ash/launcher/app_window_launcher_controller.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_CONTROLLER_H_
-#define CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_CONTROLLER_H_
+#ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_CONTROLLER_H_
+#define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_CONTROLLER_H_
#include <list>
#include <map>
@@ -24,25 +24,22 @@ class Window;
namespace client {
class ActivationClient;
}
-
}
class ChromeLauncherController;
class Profile;
-class ShellWindowLauncherItemController;
+class AppWindowLauncherItemController;
-// ShellWindowLauncherController observes the app window registry and the
+// AppWindowLauncherController observes the app window registry and the
// aura window manager. It handles adding and removing launcher items from
// ChromeLauncherController.
-// TODO(jamescook): Rename this to AppWindowLauncherController.
-// http://crbug.com/344079
-class ShellWindowLauncherController
+class AppWindowLauncherController
: public apps::AppWindowRegistry::Observer,
public aura::WindowObserver,
public aura::client::ActivationChangeObserver {
public:
- explicit ShellWindowLauncherController(ChromeLauncherController* owner);
- virtual ~ShellWindowLauncherController();
+ explicit AppWindowLauncherController(ChromeLauncherController* owner);
+ virtual ~AppWindowLauncherController();
// Called by ChromeLauncherController when the active user changed and the
// items need to be updated.
@@ -75,11 +72,11 @@ class ShellWindowLauncherController
bool IsRegisteredApp(aura::Window* window);
private:
- typedef std::map<std::string, ShellWindowLauncherItemController*>
+ typedef std::map<std::string, AppWindowLauncherItemController*>
AppControllerMap;
typedef std::map<aura::Window*, std::string> WindowToAppShelfIdMap;
- ShellWindowLauncherItemController* ControllerForWindow(aura::Window* window);
+ AppWindowLauncherItemController* ControllerForWindow(aura::Window* window);
ChromeLauncherController* owner_;
// A set of unowned AppWindowRegistry pointers for loaded users.
@@ -94,7 +91,7 @@ class ShellWindowLauncherController
// Allows us to get from an aura::Window to the app shelf id.
WindowToAppShelfIdMap window_to_app_shelf_id_map_;
- DISALLOW_COPY_AND_ASSIGN(ShellWindowLauncherController);
+ DISALLOW_COPY_AND_ASSIGN(AppWindowLauncherController);
};
-#endif // CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_CONTROLLER_H_
+#endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_CONTROLLER_H_
« no previous file with comments | « no previous file | chrome/browser/ui/ash/launcher/app_window_launcher_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698