| Index: chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h
|
| diff --git a/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h b/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h
|
| index 28d976ceddcf091e239beb4736390fc769596828..b024dd806ac326b16279afbcce1f876a0c67371f 100644
|
| --- a/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h
|
| +++ b/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h
|
| @@ -42,7 +42,8 @@ class AppWindowLauncherItemController : public LauncherItemController,
|
| void SetActiveWindow(aura::Window* window);
|
| ui::BaseWindow* GetAppWindow(aura::Window* window);
|
|
|
| - const std::string& app_shelf_id() const { return app_shelf_id_; }
|
| + const std::string& app_id() const { return app_id_; }
|
| + const std::string& launch_id() const { return launch_id_; }
|
|
|
| // LauncherItemController overrides:
|
| bool IsOpen() const override;
|
| @@ -74,8 +75,8 @@ class AppWindowLauncherItemController : public LauncherItemController,
|
|
|
| protected:
|
| AppWindowLauncherItemController(Type type,
|
| - const std::string& app_shelf_id,
|
| const std::string& app_id,
|
| + const std::string& launch_id,
|
| ChromeLauncherController* controller);
|
|
|
| // Called when app window is removed from controller.
|
| @@ -102,9 +103,13 @@ class AppWindowLauncherItemController : public LauncherItemController,
|
| // Pointer to the most recently active app window
|
| ui::BaseWindow* last_active_window_ = nullptr;
|
|
|
| - // The launcher id associated with this set of windows. There is one
|
| - // AppLauncherItemController for each |app_shelf_id_|.
|
| - const std::string app_shelf_id_;
|
| + // The application id associated with this set of windows.
|
| + const std::string app_id_;
|
| +
|
| + // An id that can be passed to an app when launched in order to support
|
| + // multiple shelf items per app. This id is used together with the app_id to
|
| + // uniquely identify each shelf item that has the same app_id.
|
| + const std::string launch_id_;
|
|
|
| // Scoped list of observed windows (for removal on destruction)
|
| ScopedObserver<aura::Window, aura::WindowObserver> observed_windows_;
|
|
|