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" | |
sky
2016/09/13 00:03:25
Only include this if on chromeos (to match your if
xiaoyinh(OOO Sep 11-29)
2016/09/16 18:41:16
Done.
| |
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; |
28 class BrowserStatusMonitor; | 29 class BrowserStatusMonitor; |
29 class LauncherControllerHelper; | 30 class LauncherControllerHelper; |
30 class Profile; | 31 class Profile; |
31 class AppWindowLauncherController; | 32 class AppWindowLauncherController; |
32 class TabContents; | 33 class TabContents; |
33 | 34 |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
361 | 362 |
362 // If true, incoming pinned state changes should be ignored. | 363 // If true, incoming pinned state changes should be ignored. |
363 bool ignore_persist_pinned_state_change_ = false; | 364 bool ignore_persist_pinned_state_change_ = false; |
364 | 365 |
365 // The list of running & un-pinned applications for different users on hidden | 366 // The list of running & un-pinned applications for different users on hidden |
366 // desktops. | 367 // desktops. |
367 typedef std::vector<std::string> RunningAppListIds; | 368 typedef std::vector<std::string> RunningAppListIds; |
368 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; | 369 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; |
369 RunningAppListIdMap last_used_running_application_order_; | 370 RunningAppListIdMap last_used_running_application_order_; |
370 | 371 |
372 #if defined(OS_CHROMEOS) | |
373 // Record stylus metrics for down event. | |
374 std::unique_ptr<chromeos::StylusMetricsRecorder> stylus_metrics_recorder_; | |
375 #endif | |
376 | |
371 base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_; | 377 base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_; |
372 | 378 |
373 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); | 379 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); |
374 }; | 380 }; |
375 | 381 |
376 #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 |