| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/common/shelf/shelf_item_delegate.h" | 10 #include "ash/common/shelf/shelf_item_delegate.h" |
| 11 #include "ash/common/shelf/shelf_item_types.h" | 11 #include "ash/common/shelf/shelf_item_types.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h" | 14 #include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h" |
| 15 #include "ui/events/event.h" | 15 #include "ui/events/event.h" |
| 16 | 16 |
| 17 class AppWindowLauncherItemController; | 17 class AppWindowLauncherItemController; |
| 18 class ChromeLauncherController; | 18 class ChromeLauncherController; |
| 19 | 19 |
| 20 // LauncherItemController is used by ChromeLauncherController to track one | 20 // LauncherItemController is used by ChromeLauncherController to track one |
| 21 // or more windows associated with a shelf item. | 21 // or more windows associated with a shelf item. |
| 22 // TODO (khmel): Consider using ash::launcher::AppLauncherId instead of pair | 22 // TODO (khmel): Consider using ash::AppLauncherId instead of pair |
| 23 // |app_id| and |launch_id|. | 23 // |app_id| and |launch_id|. |
| 24 class LauncherItemController : public ash::ShelfItemDelegate { | 24 class LauncherItemController : public ash::ShelfItemDelegate { |
| 25 public: | 25 public: |
| 26 LauncherItemController(const std::string& app_id, | 26 LauncherItemController(const std::string& app_id, |
| 27 const std::string& launch_id, | 27 const std::string& launch_id, |
| 28 ChromeLauncherController* launcher_controller); | 28 ChromeLauncherController* launcher_controller); |
| 29 ~LauncherItemController() override; | 29 ~LauncherItemController() override; |
| 30 | 30 |
| 31 ash::ShelfID shelf_id() const { return shelf_id_; } | 31 ash::ShelfID shelf_id() const { return shelf_id_; } |
| 32 void set_shelf_id(ash::ShelfID id) { shelf_id_ = id; } | 32 void set_shelf_id(ash::ShelfID id) { shelf_id_ = id; } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // applications. | 76 // applications. |
| 77 int locked_; | 77 int locked_; |
| 78 | 78 |
| 79 // Set to true if the launcher item image has been set by the controller. | 79 // Set to true if the launcher item image has been set by the controller. |
| 80 bool image_set_by_controller_; | 80 bool image_set_by_controller_; |
| 81 | 81 |
| 82 DISALLOW_COPY_AND_ASSIGN(LauncherItemController); | 82 DISALLOW_COPY_AND_ASSIGN(LauncherItemController); |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ | 85 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ |
| OLD | NEW |