| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/common/shelf/shelf_item_delegate.h" | 10 #include "ash/common/shelf/shelf_item_delegate.h" |
| 11 #include "ash/common/shelf/shelf_item_types.h" | 11 #include "ash/common/shelf/shelf_item_types.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 "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
| 15 #include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h" | 15 #include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h" |
| 16 #include "ui/events/event.h" | 16 #include "ui/events/event.h" |
| 17 | 17 |
| 18 class ChromeLauncherController; | 18 class ChromeLauncherController; |
| 19 class ChromeLauncherAppMenuItem; | 19 class ChromeLauncherAppMenuItem; |
| 20 class Profile; | |
| 21 | 20 |
| 22 typedef ScopedVector<ChromeLauncherAppMenuItem> ChromeLauncherAppMenuItems; | 21 typedef ScopedVector<ChromeLauncherAppMenuItem> ChromeLauncherAppMenuItems; |
| 23 | 22 |
| 24 namespace aura { | |
| 25 class Window; | |
| 26 } | |
| 27 | |
| 28 namespace content { | |
| 29 class WebContents; | |
| 30 } | |
| 31 | |
| 32 // LauncherItemController is used by ChromeLauncherController to track one | 23 // LauncherItemController is used by ChromeLauncherController to track one |
| 33 // or more windows associated with a shelf item. | 24 // or more windows associated with a shelf item. |
| 34 class LauncherItemController : public ash::ShelfItemDelegate { | 25 class LauncherItemController : public ash::ShelfItemDelegate { |
| 35 public: | 26 public: |
| 36 enum Type { | 27 enum Type { |
| 37 TYPE_APP, | 28 TYPE_APP, |
| 38 TYPE_APP_PANEL, | 29 TYPE_APP_PANEL, |
| 39 TYPE_SHORTCUT, | 30 TYPE_SHORTCUT, |
| 40 TYPE_WINDOWED_APP | 31 TYPE_WINDOWED_APP |
| 41 }; | 32 }; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // applications. | 97 // applications. |
| 107 int locked_; | 98 int locked_; |
| 108 | 99 |
| 109 // Set to true if the launcher item image has been set by the controller. | 100 // Set to true if the launcher item image has been set by the controller. |
| 110 bool image_set_by_controller_; | 101 bool image_set_by_controller_; |
| 111 | 102 |
| 112 DISALLOW_COPY_AND_ASSIGN(LauncherItemController); | 103 DISALLOW_COPY_AND_ASSIGN(LauncherItemController); |
| 113 }; | 104 }; |
| 114 | 105 |
| 115 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ | 106 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ |
| OLD | NEW |