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

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

Issue 2765563002: Move and rename Chrome's AppLauncherId to ash::AppLaunchId. (Closed)
Patch Set: Add example commment. 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
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_controller_helper.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/public/cpp/shelf_item.h" 10 #include "ash/public/cpp/shelf_item.h"
11 #include "ash/public/interfaces/shelf.mojom.h" 11 #include "ash/public/interfaces/shelf.mojom.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 "ui/events/event.h" 14 #include "ui/events/event.h"
15 15
16 class AppWindowLauncherItemController; 16 class AppWindowLauncherItemController;
17 class ChromeLauncherController; 17 class ChromeLauncherController;
18 18
19 using MenuItemList = std::vector<ash::mojom::MenuItemPtr>; 19 using MenuItemList = std::vector<ash::mojom::MenuItemPtr>;
20 20
21 // LauncherItemController is used by ChromeLauncherController to track one 21 // LauncherItemController is used by ChromeLauncherController to track one
22 // or more windows associated with a shelf item. 22 // or more windows associated with a shelf item.
23 // TODO (khmel): Consider using ash::AppLauncherId instead of pair 23 // TODO (khmel): Consider using ash::AppLaunchId instead of pair
24 // |app_id| and |launch_id|. 24 // |app_id| and |launch_id|.
25 class LauncherItemController : public ash::mojom::ShelfItemDelegate { 25 class LauncherItemController : public ash::mojom::ShelfItemDelegate {
26 public: 26 public:
27 LauncherItemController(const std::string& app_id, 27 LauncherItemController(const std::string& app_id,
28 const std::string& launch_id, 28 const std::string& launch_id,
29 ChromeLauncherController* launcher_controller); 29 ChromeLauncherController* launcher_controller);
30 ~LauncherItemController() override; 30 ~LauncherItemController() override;
31 31
32 ash::ShelfID shelf_id() const { return shelf_id_; } 32 ash::ShelfID shelf_id() const { return shelf_id_; }
33 void set_shelf_id(ash::ShelfID id) { shelf_id_ = id; } 33 void set_shelf_id(ash::ShelfID id) { shelf_id_ = id; }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // applications. 75 // applications.
76 int locked_; 76 int locked_;
77 77
78 // Set to true if the launcher item image has been set by the controller. 78 // Set to true if the launcher item image has been set by the controller.
79 bool image_set_by_controller_; 79 bool image_set_by_controller_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(LauncherItemController); 81 DISALLOW_COPY_AND_ASSIGN(LauncherItemController);
82 }; 82 };
83 83
84 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ 84 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_controller_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698