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

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

Issue 2518423003: Combine shelf platform and windowed app types. (Closed)
Patch Set: Update platform-app test support; address comment; format. Created 4 years 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 (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/common/shelf/shelf_item_delegate.h" 10 #include "ash/common/shelf/shelf_item_delegate.h"
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 // LauncherItemController is used by ChromeLauncherController to track one 32 // LauncherItemController is used by ChromeLauncherController to track one
33 // or more windows associated with a shelf item. 33 // or more windows associated with a shelf item.
34 class LauncherItemController : public ash::ShelfItemDelegate { 34 class LauncherItemController : public ash::ShelfItemDelegate {
35 public: 35 public:
36 enum Type { 36 enum Type {
37 TYPE_APP, 37 TYPE_APP,
38 TYPE_APP_PANEL, 38 TYPE_APP_PANEL,
39 TYPE_SHORTCUT, 39 TYPE_SHORTCUT,
40 TYPE_WINDOWED_APP
41 }; 40 };
42 41
43 LauncherItemController(Type type, 42 LauncherItemController(Type type,
44 const std::string& app_id, 43 const std::string& app_id,
45 const std::string& launch_id, 44 const std::string& launch_id,
46 ChromeLauncherController* launcher_controller); 45 ChromeLauncherController* launcher_controller);
47 ~LauncherItemController() override; 46 ~LauncherItemController() override;
48 47
49 Type type() const { return type_; } 48 Type type() const { return type_; }
50 ash::ShelfID shelf_id() const { return shelf_id_; } 49 ash::ShelfID shelf_id() const { return shelf_id_; }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // applications. 105 // applications.
107 int locked_; 106 int locked_;
108 107
109 // Set to true if the launcher item image has been set by the controller. 108 // Set to true if the launcher item image has been set by the controller.
110 bool image_set_by_controller_; 109 bool image_set_by_controller_;
111 110
112 DISALLOW_COPY_AND_ASSIGN(LauncherItemController); 111 DISALLOW_COPY_AND_ASSIGN(LauncherItemController);
113 }; 112 };
114 113
115 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ 114 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698