| 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 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 ChromeLauncherController* controller); | 21 ChromeLauncherController* controller); |
| 22 | 22 |
| 23 ~ArcAppWindowLauncherItemController() override; | 23 ~ArcAppWindowLauncherItemController() override; |
| 24 | 24 |
| 25 // LauncherItemController overrides: | 25 // LauncherItemController overrides: |
| 26 void ItemSelected(std::unique_ptr<ui::Event> event, | 26 void ItemSelected(std::unique_ptr<ui::Event> event, |
| 27 int64_t display_id, | 27 int64_t display_id, |
| 28 ash::ShelfLaunchSource source, | 28 ash::ShelfLaunchSource source, |
| 29 const ItemSelectedCallback& callback) override; | 29 const ItemSelectedCallback& callback) override; |
| 30 MenuItemList GetAppMenuItems(int event_flags) override; | 30 MenuItemList GetAppMenuItems(int event_flags) override; |
| 31 void ExecuteCommand(uint32_t command_id, int32_t event_flags) override; |
| 31 | 32 |
| 32 void AddTaskId(int task_id); | 33 void AddTaskId(int task_id); |
| 33 void RemoveTaskId(int task_id); | 34 void RemoveTaskId(int task_id); |
| 34 bool HasAnyTasks() const; | 35 bool HasAnyTasks() const; |
| 35 | 36 |
| 36 private: | 37 private: |
| 37 std::unordered_set<int> task_ids_; | 38 std::unordered_set<int> task_ids_; |
| 38 | 39 |
| 39 DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherItemController); | 40 DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherItemController); |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_ITEM_CONTROLLE
R_H_ | 43 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_ITEM_CONTROLLE
R_H_ |
| OLD | NEW |