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 "ash/shelf/shelf_item_delegate.h" | 8 #include "ash/shelf/shelf_item_delegate.h" |
9 #include "ash/shelf/shelf_item_types.h" | 9 #include "ash/shelf/shelf_item_types.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 enum Type { | 34 enum Type { |
35 TYPE_APP, | 35 TYPE_APP, |
36 TYPE_APP_PANEL, | 36 TYPE_APP_PANEL, |
37 TYPE_SHORTCUT, | 37 TYPE_SHORTCUT, |
38 TYPE_WINDOWED_APP | 38 TYPE_WINDOWED_APP |
39 }; | 39 }; |
40 | 40 |
41 LauncherItemController(Type type, | 41 LauncherItemController(Type type, |
42 const std::string& app_id, | 42 const std::string& app_id, |
43 ChromeLauncherController* launcher_controller); | 43 ChromeLauncherController* launcher_controller); |
44 virtual ~LauncherItemController(); | 44 ~LauncherItemController() override; |
45 | 45 |
46 Type type() const { return type_; } | 46 Type type() const { return type_; } |
47 ash::ShelfID shelf_id() const { return shelf_id_; } | 47 ash::ShelfID shelf_id() const { return shelf_id_; } |
48 void set_shelf_id(ash::ShelfID id) { shelf_id_ = id; } | 48 void set_shelf_id(ash::ShelfID id) { shelf_id_ = id; } |
49 virtual const std::string& app_id() const; | 49 virtual const std::string& app_id() const; |
50 ChromeLauncherController* launcher_controller() const { | 50 ChromeLauncherController* launcher_controller() const { |
51 return launcher_controller_; | 51 return launcher_controller_; |
52 } | 52 } |
53 | 53 |
54 // Lock this item to the launcher without being pinned (windowed v1 apps). | 54 // Lock this item to the launcher without being pinned (windowed v1 apps). |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // applications. | 101 // applications. |
102 int locked_; | 102 int locked_; |
103 | 103 |
104 // Set to true if the launcher item image has been set by the controller. | 104 // Set to true if the launcher item image has been set by the controller. |
105 bool image_set_by_controller_; | 105 bool image_set_by_controller_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(LauncherItemController); | 107 DISALLOW_COPY_AND_ASSIGN(LauncherItemController); |
108 }; | 108 }; |
109 | 109 |
110 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ | 110 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ |
OLD | NEW |