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 #include "ash/common/system/tray/system_tray.h" | 5 #include "ash/system/tray/system_tray.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ash/common/key_event_watcher.h" | 11 #include "ash/common/key_event_watcher.h" |
12 #include "ash/common/login_status.h" | 12 #include "ash/common/login_status.h" |
13 #include "ash/common/material_design/material_design_controller.h" | 13 #include "ash/common/material_design/material_design_controller.h" |
14 #include "ash/common/session/session_state_delegate.h" | 14 #include "ash/common/session/session_state_delegate.h" |
15 #include "ash/common/shelf/wm_shelf.h" | 15 #include "ash/common/shelf/wm_shelf.h" |
16 #include "ash/common/shelf/wm_shelf_util.h" | 16 #include "ash/common/shelf/wm_shelf_util.h" |
17 #include "ash/common/system/chromeos/audio/tray_audio.h" | |
18 #include "ash/common/system/chromeos/bluetooth/tray_bluetooth.h" | |
19 #include "ash/common/system/chromeos/brightness/tray_brightness.h" | |
20 #include "ash/common/system/chromeos/cast/tray_cast.h" | |
21 #include "ash/common/system/chromeos/enterprise/tray_enterprise.h" | |
22 #include "ash/common/system/chromeos/media_security/multi_profile_media_tray_ite
m.h" | |
23 #include "ash/common/system/chromeos/network/tray_network.h" | |
24 #include "ash/common/system/chromeos/network/tray_vpn.h" | |
25 #include "ash/common/system/chromeos/power/power_status.h" | |
26 #include "ash/common/system/chromeos/power/tray_power.h" | |
27 #include "ash/common/system/chromeos/screen_security/screen_capture_tray_item.h" | |
28 #include "ash/common/system/chromeos/screen_security/screen_share_tray_item.h" | |
29 #include "ash/common/system/chromeos/session/tray_session_length_limit.h" | |
30 #include "ash/common/system/chromeos/settings/tray_settings.h" | |
31 #include "ash/common/system/chromeos/supervised/tray_supervised_user.h" | |
32 #include "ash/common/system/chromeos/tray_caps_lock.h" | |
33 #include "ash/common/system/chromeos/tray_tracing.h" | |
34 #include "ash/common/system/date/tray_date.h" | |
35 #include "ash/common/system/date/tray_system_info.h" | |
36 #include "ash/common/system/ime/tray_ime_chromeos.h" | |
37 #include "ash/common/system/tiles/tray_tiles.h" | |
38 #include "ash/common/system/tray/system_tray_controller.h" | |
39 #include "ash/common/system/tray/system_tray_delegate.h" | |
40 #include "ash/common/system/tray/system_tray_item.h" | |
41 #include "ash/common/system/tray/tray_bubble_wrapper.h" | |
42 #include "ash/common/system/tray/tray_constants.h" | |
43 #include "ash/common/system/tray_accessibility.h" | |
44 #include "ash/common/system/update/tray_update.h" | |
45 #include "ash/common/system/user/tray_user.h" | |
46 #include "ash/common/system/web_notification/web_notification_tray.h" | |
47 #include "ash/common/wm/container_finder.h" | 17 #include "ash/common/wm/container_finder.h" |
48 #include "ash/common/wm_activation_observer.h" | 18 #include "ash/common/wm_activation_observer.h" |
49 #include "ash/common/wm_shell.h" | 19 #include "ash/common/wm_shell.h" |
50 #include "ash/common/wm_window.h" | 20 #include "ash/common/wm_window.h" |
51 #include "ash/public/cpp/shell_window_ids.h" | 21 #include "ash/public/cpp/shell_window_ids.h" |
52 #include "ash/root_window_controller.h" | 22 #include "ash/root_window_controller.h" |
53 #include "ash/strings/grit/ash_strings.h" | 23 #include "ash/strings/grit/ash_strings.h" |
| 24 #include "ash/system/audio/tray_audio.h" |
| 25 #include "ash/system/bluetooth/tray_bluetooth.h" |
| 26 #include "ash/system/brightness/tray_brightness.h" |
| 27 #include "ash/system/cast/tray_cast.h" |
| 28 #include "ash/system/date/tray_date.h" |
| 29 #include "ash/system/date/tray_system_info.h" |
| 30 #include "ash/system/enterprise/tray_enterprise.h" |
| 31 #include "ash/system/ime/tray_ime_chromeos.h" |
| 32 #include "ash/system/media_security/multi_profile_media_tray_item.h" |
| 33 #include "ash/system/network/tray_network.h" |
| 34 #include "ash/system/network/tray_vpn.h" |
| 35 #include "ash/system/power/power_status.h" |
| 36 #include "ash/system/power/tray_power.h" |
| 37 #include "ash/system/screen_security/screen_capture_tray_item.h" |
| 38 #include "ash/system/screen_security/screen_share_tray_item.h" |
| 39 #include "ash/system/session/tray_session_length_limit.h" |
| 40 #include "ash/system/settings/tray_settings.h" |
| 41 #include "ash/system/supervised/tray_supervised_user.h" |
| 42 #include "ash/system/tiles/tray_tiles.h" |
| 43 #include "ash/system/tray/system_tray_controller.h" |
| 44 #include "ash/system/tray/system_tray_delegate.h" |
| 45 #include "ash/system/tray/system_tray_item.h" |
| 46 #include "ash/system/tray/tray_bubble_wrapper.h" |
| 47 #include "ash/system/tray/tray_constants.h" |
| 48 #include "ash/system/tray_accessibility.h" |
| 49 #include "ash/system/tray_caps_lock.h" |
| 50 #include "ash/system/tray_tracing.h" |
| 51 #include "ash/system/update/tray_update.h" |
| 52 #include "ash/system/user/tray_user.h" |
| 53 #include "ash/system/web_notification/web_notification_tray.h" |
54 #include "base/logging.h" | 54 #include "base/logging.h" |
55 #include "base/memory/ptr_util.h" | 55 #include "base/memory/ptr_util.h" |
56 #include "base/metrics/histogram_macros.h" | 56 #include "base/metrics/histogram_macros.h" |
57 #include "base/timer/timer.h" | 57 #include "base/timer/timer.h" |
58 #include "ui/base/accelerators/accelerator.h" | 58 #include "ui/base/accelerators/accelerator.h" |
59 #include "ui/base/l10n/l10n_util.h" | 59 #include "ui/base/l10n/l10n_util.h" |
60 #include "ui/compositor/layer.h" | 60 #include "ui/compositor/layer.h" |
61 #include "ui/display/display.h" | 61 #include "ui/display/display.h" |
62 #include "ui/display/screen.h" | 62 #include "ui/display/screen.h" |
63 #include "ui/events/event_constants.h" | 63 #include "ui/events/event_constants.h" |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 .work_area() | 767 .work_area() |
768 .height(); | 768 .height(); |
769 if (work_area_height > 0) { | 769 if (work_area_height > 0) { |
770 UMA_HISTOGRAM_CUSTOM_COUNTS( | 770 UMA_HISTOGRAM_CUSTOM_COUNTS( |
771 "Ash.SystemMenu.PercentageOfWorkAreaHeightCoveredByMenu", | 771 "Ash.SystemMenu.PercentageOfWorkAreaHeightCoveredByMenu", |
772 100 * bubble_view->height() / work_area_height, 1, 300, 100); | 772 100 * bubble_view->height() / work_area_height, 1, 300, 100); |
773 } | 773 } |
774 } | 774 } |
775 | 775 |
776 } // namespace ash | 776 } // namespace ash |
OLD | NEW |