| 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_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <queue> | 10 #include <deque> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "ash/launcher/launcher_delegate.h" | 13 #include "ash/launcher/launcher_delegate.h" |
| 14 #include "ash/launcher/launcher_model_observer.h" | 14 #include "ash/launcher/launcher_model_observer.h" |
| 15 #include "ash/launcher/launcher_types.h" | 15 #include "ash/launcher/launcher_types.h" |
| 16 #include "ash/wm/shelf_auto_hide_behavior.h" | 16 #include "ash/wm/shelf_auto_hide_behavior.h" |
| 17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
| 18 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
| 19 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
| 20 #include "chrome/browser/extensions/extension_prefs.h" | 20 #include "chrome/browser/extensions/extension_prefs.h" |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 230 |
| 231 IDToItemMap id_to_item_map_; | 231 IDToItemMap id_to_item_map_; |
| 232 | 232 |
| 233 // Used to load the image for an app tab. | 233 // Used to load the image for an app tab. |
| 234 scoped_ptr<AppIconLoader> app_icon_loader_; | 234 scoped_ptr<AppIconLoader> app_icon_loader_; |
| 235 | 235 |
| 236 // A list of items that are in pinned app list but corresponding apps are | 236 // A list of items that are in pinned app list but corresponding apps are |
| 237 // not ready. Keep them in this list and create pinned item when the apps | 237 // not ready. Keep them in this list and create pinned item when the apps |
| 238 // are installed (via sync or external extension provider.) The order of the | 238 // are installed (via sync or external extension provider.) The order of the |
| 239 // list reflects the original order in pinned app list. | 239 // list reflects the original order in pinned app list. |
| 240 std::queue<Item> pending_pinned_apps_; | 240 std::deque<Item> pending_pinned_apps_; |
| 241 | 241 |
| 242 content::NotificationRegistrar registrar_; | 242 content::NotificationRegistrar registrar_; |
| 243 | 243 |
| 244 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate); | 244 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate); |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ | 247 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ |
| OLD | NEW |