| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_ARC_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H
_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H
_ |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H
_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H
_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <unordered_set> | 9 #include <unordered_set> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h" | 12 #include "chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h" |
| 13 | 13 |
| 14 class ChromeLauncherController; | 14 class ChromeLauncherController; |
| 15 | 15 |
| 16 class ArcAppWindowLauncherItemController | 16 class ArcAppWindowLauncherItemController |
| 17 : public AppWindowLauncherItemController { | 17 : public AppWindowLauncherItemController { |
| 18 public: | 18 public: |
| 19 ArcAppWindowLauncherItemController(const std::string& arc_app_id, | 19 ArcAppWindowLauncherItemController(const std::string& arc_app_id, |
| 20 ChromeLauncherController* controller); | 20 ChromeLauncherController* controller); |
| 21 | 21 |
| 22 ~ArcAppWindowLauncherItemController() override; | 22 ~ArcAppWindowLauncherItemController() override; |
| 23 | 23 |
| 24 // LauncherItemController overrides: | 24 // LauncherItemController overrides: |
| 25 ash::ShelfItemDelegate::PerformedAction ItemSelected( | 25 ash::ShelfItemDelegate::PerformedAction ItemSelected( |
| 26 const ui::Event& event) override; | 26 const ui::Event& event) override; |
| 27 ChromeLauncherAppMenuItems GetApplicationList(int event_flags) override; | 27 ash::ShelfAppMenuItemList GetAppMenuItems(int event_flags) override; |
| 28 | 28 |
| 29 void AddTaskId(int task_id); | 29 void AddTaskId(int task_id); |
| 30 void RemoveTaskId(int task_id); | 30 void RemoveTaskId(int task_id); |
| 31 bool HasAnyTasks() const; | 31 bool HasAnyTasks() const; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 std::unordered_set<int> task_ids_; | 34 std::unordered_set<int> task_ids_; |
| 35 | 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherItemController); | 36 DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherItemController); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_ITEM_CONTROLLE
R_H_ | 39 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_ITEM_CONTROLLE
R_H_ |
| OLD | NEW |