OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ |
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "ash/common/shelf/shelf_item_delegate_manager.h" | 11 #include "ash/common/shelf/shelf_item_delegate_manager.h" |
12 #include "ash/common/shelf/shelf_model_observer.h" | 12 #include "ash/common/shelf/shelf_model_observer.h" |
13 #include "ash/common/shelf/shelf_types.h" | 13 #include "ash/common/shelf/shelf_types.h" |
14 #include "ash/display/window_tree_host_manager.h" | 14 #include "ash/display/window_tree_host_manager.h" |
15 #include "ash/shelf/shelf_delegate.h" | 15 #include "ash/shelf/shelf_delegate.h" |
16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/weak_ptr.h" |
18 #include "build/build_config.h" | 19 #include "build/build_config.h" |
19 #include "chrome/browser/ui/app_icon_loader.h" | 20 #include "chrome/browser/ui/app_icon_loader.h" |
20 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" | 21 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" |
21 #include "chrome/browser/ui/ash/app_sync_ui_state_observer.h" | 22 #include "chrome/browser/ui/ash/app_sync_ui_state_observer.h" |
22 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" | 23 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
23 #include "chrome/browser/ui/ash/launcher/launcher_app_updater.h" | 24 #include "chrome/browser/ui/ash/launcher/launcher_app_updater.h" |
24 #include "components/prefs/pref_change_registrar.h" | 25 #include "components/prefs/pref_change_registrar.h" |
25 #include "ui/aura/window_observer.h" | 26 #include "ui/aura/window_observer.h" |
26 | 27 |
27 class AppSyncUIState; | 28 class AppSyncUIState; |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 | 367 |
367 // If true, incoming pinned state changes should be ignored. | 368 // If true, incoming pinned state changes should be ignored. |
368 bool ignore_persist_pinned_state_change_ = false; | 369 bool ignore_persist_pinned_state_change_ = false; |
369 | 370 |
370 // The list of running & un-pinned applications for different users on hidden | 371 // The list of running & un-pinned applications for different users on hidden |
371 // desktops. | 372 // desktops. |
372 typedef std::vector<std::string> RunningAppListIds; | 373 typedef std::vector<std::string> RunningAppListIds; |
373 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; | 374 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; |
374 RunningAppListIdMap last_used_running_application_order_; | 375 RunningAppListIdMap last_used_running_application_order_; |
375 | 376 |
| 377 base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_; |
| 378 |
376 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); | 379 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); |
377 }; | 380 }; |
378 | 381 |
379 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ | 382 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ |
OLD | NEW |