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_delegate.h" | 11 #include "ash/common/shelf/shelf_delegate.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 "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "chrome/browser/ui/app_icon_loader.h" | 19 #include "chrome/browser/ui/app_icon_loader.h" |
20 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" | 20 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" |
21 #include "chrome/browser/ui/ash/app_sync_ui_state_observer.h" | 21 #include "chrome/browser/ui/ash/app_sync_ui_state_observer.h" |
22 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" | 22 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
23 #include "chrome/browser/ui/ash/launcher/launcher_app_updater.h" | 23 #include "chrome/browser/ui/ash/launcher/launcher_app_updater.h" |
24 #include "chrome/browser/ui/ash/metrics/stylus_metrics_recorder.h" | |
xiyuan
2016/09/16 20:07:54
forgot to remove?
xiaoyinh(OOO Sep 11-29)
2016/09/16 22:34:25
Oops...Removed.
| |
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 |
28 #if defined(OS_CHROMEOS) | |
29 #include "chrome/browser/ui/ash/metrics/stylus_metrics_recorder.h" | |
xiyuan
2016/09/16 20:07:54
nit: Since StylusMetricsRecorder is held in a std:
xiaoyinh(OOO Sep 11-29)
2016/09/16 22:34:25
Done.
| |
30 #endif | |
31 | |
27 class AppSyncUIState; | 32 class AppSyncUIState; |
28 class BrowserStatusMonitor; | 33 class BrowserStatusMonitor; |
29 class LauncherControllerHelper; | 34 class LauncherControllerHelper; |
30 class Profile; | 35 class Profile; |
31 class AppWindowLauncherController; | 36 class AppWindowLauncherController; |
32 class TabContents; | 37 class TabContents; |
33 | 38 |
34 namespace ash { | 39 namespace ash { |
35 class ShelfModel; | 40 class ShelfModel; |
36 namespace launcher { | 41 namespace launcher { |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
361 | 366 |
362 // If true, incoming pinned state changes should be ignored. | 367 // If true, incoming pinned state changes should be ignored. |
363 bool ignore_persist_pinned_state_change_ = false; | 368 bool ignore_persist_pinned_state_change_ = false; |
364 | 369 |
365 // The list of running & un-pinned applications for different users on hidden | 370 // The list of running & un-pinned applications for different users on hidden |
366 // desktops. | 371 // desktops. |
367 typedef std::vector<std::string> RunningAppListIds; | 372 typedef std::vector<std::string> RunningAppListIds; |
368 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; | 373 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; |
369 RunningAppListIdMap last_used_running_application_order_; | 374 RunningAppListIdMap last_used_running_application_order_; |
370 | 375 |
376 #if defined(OS_CHROMEOS) | |
377 // Record stylus metrics for down event. | |
378 std::unique_ptr<chromeos::StylusMetricsRecorder> stylus_metrics_recorder_; | |
379 #endif | |
380 | |
371 base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_; | 381 base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_; |
372 | 382 |
373 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); | 383 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); |
374 }; | 384 }; |
375 | 385 |
376 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ | 386 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ |
OLD | NEW |