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

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

Issue 97173003: ash: Rename more Launcher classes to Shelf*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: link chrome Created 7 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 | Annotate | Revision Log
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 "ash/launcher/launcher_item_delegate.h"
9 #include "ash/launcher/launcher_types.h" 8 #include "ash/launcher/launcher_types.h"
9 #include "ash/shelf/shelf_item_delegate.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_vector.h" 12 #include "base/memory/scoped_vector.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h" 14 #include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h"
15 #include "ui/events/event.h" 15 #include "ui/events/event.h"
16 16
17 class ChromeLauncherController; 17 class ChromeLauncherController;
18 class ChromeLauncherAppMenuItem; 18 class ChromeLauncherAppMenuItem;
19 19
20 typedef ScopedVector<ChromeLauncherAppMenuItem> ChromeLauncherAppMenuItems; 20 typedef ScopedVector<ChromeLauncherAppMenuItem> ChromeLauncherAppMenuItems;
21 21
22 namespace aura { 22 namespace aura {
23 class Window; 23 class Window;
24 } 24 }
25 25
26 namespace content { 26 namespace content {
27 class WebContents; 27 class WebContents;
28 } 28 }
29 29
30 // LauncherItemController is used by ChromeLauncherController to track one 30 // LauncherItemController is used by ChromeLauncherController to track one
31 // or more windows associated with a launcher item. 31 // or more windows associated with a shelf item.
32 class LauncherItemController : public ash::LauncherItemDelegate { 32 class LauncherItemController : public ash::ShelfItemDelegate {
33 public: 33 public:
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,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // applications. 104 // applications.
105 int locked_; 105 int locked_;
106 106
107 // Set to true if the launcher item image has been set by the controller. 107 // Set to true if the launcher item image has been set by the controller.
108 bool image_set_by_controller_; 108 bool image_set_by_controller_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(LauncherItemController); 110 DISALLOW_COPY_AND_ASSIGN(LauncherItemController);
111 }; 111 };
112 112
113 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ 113 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698