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

Side by Side Diff: chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h

Issue 2716403005: mash: Remove shelf app menu item objects. (Closed)
Patch Set: Address comments. Created 3 years, 9 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 unified diff | Download patch
OLDNEW
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 // Shelf item delegate for ARC app windows.
16 class ArcAppWindowLauncherItemController 17 class ArcAppWindowLauncherItemController
17 : public AppWindowLauncherItemController { 18 : public AppWindowLauncherItemController {
18 public: 19 public:
19 ArcAppWindowLauncherItemController(const std::string& arc_app_id, 20 ArcAppWindowLauncherItemController(const std::string& arc_app_id,
20 ChromeLauncherController* controller); 21 ChromeLauncherController* controller);
21 22
22 ~ArcAppWindowLauncherItemController() override; 23 ~ArcAppWindowLauncherItemController() override;
23 24
24 // LauncherItemController overrides: 25 // LauncherItemController overrides:
25 ash::ShelfAction ItemSelected(ui::EventType event_type, 26 ash::ShelfAction ItemSelected(ui::EventType event_type,
26 int event_flags, 27 int event_flags,
27 int64_t display_id, 28 int64_t display_id,
28 ash::ShelfLaunchSource source) override; 29 ash::ShelfLaunchSource source) override;
29 ash::ShelfAppMenuItemList GetAppMenuItems(int event_flags) override; 30 ash::ShelfAppMenuItemList GetAppMenuItems(int event_flags) override;
30 31
31 void AddTaskId(int task_id); 32 void AddTaskId(int task_id);
32 void RemoveTaskId(int task_id); 33 void RemoveTaskId(int task_id);
33 bool HasAnyTasks() const; 34 bool HasAnyTasks() const;
34 35
35 private: 36 private:
36 std::unordered_set<int> task_ids_; 37 std::unordered_set<int> task_ids_;
37 38
38 DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherItemController); 39 DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherItemController);
39 }; 40 };
40 41
41 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_ITEM_CONTROLLE R_H_ 42 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_ITEM_CONTROLLE R_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698