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/common/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 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "ash/common/system/tray/tray_bubble_wrapper.h" | 42 #include "ash/common/system/tray/tray_bubble_wrapper.h" |
43 #include "ash/common/system/tray/tray_constants.h" | 43 #include "ash/common/system/tray/tray_constants.h" |
44 #include "ash/common/system/tray_accessibility.h" | 44 #include "ash/common/system/tray_accessibility.h" |
45 #include "ash/common/system/update/tray_update.h" | 45 #include "ash/common/system/update/tray_update.h" |
46 #include "ash/common/system/user/tray_user.h" | 46 #include "ash/common/system/user/tray_user.h" |
47 #include "ash/common/system/user/tray_user_separator.h" | 47 #include "ash/common/system/user/tray_user_separator.h" |
48 #include "ash/common/system/web_notification/web_notification_tray.h" | 48 #include "ash/common/system/web_notification/web_notification_tray.h" |
49 #include "ash/common/wm/container_finder.h" | 49 #include "ash/common/wm/container_finder.h" |
50 #include "ash/common/wm_activation_observer.h" | 50 #include "ash/common/wm_activation_observer.h" |
51 #include "ash/common/wm_lookup.h" | 51 #include "ash/common/wm_lookup.h" |
52 #include "ash/common/wm_root_window_controller.h" | |
53 #include "ash/common/wm_shell.h" | 52 #include "ash/common/wm_shell.h" |
54 #include "ash/common/wm_window.h" | 53 #include "ash/common/wm_window.h" |
55 #include "ash/public/cpp/shell_window_ids.h" | 54 #include "ash/public/cpp/shell_window_ids.h" |
| 55 #include "ash/root_window_controller.h" |
56 #include "base/logging.h" | 56 #include "base/logging.h" |
57 #include "base/metrics/histogram.h" | 57 #include "base/metrics/histogram.h" |
58 #include "base/timer/timer.h" | 58 #include "base/timer/timer.h" |
59 #include "grit/ash_strings.h" | 59 #include "grit/ash_strings.h" |
60 #include "ui/base/accelerators/accelerator.h" | 60 #include "ui/base/accelerators/accelerator.h" |
61 #include "ui/base/l10n/l10n_util.h" | 61 #include "ui/base/l10n/l10n_util.h" |
62 #include "ui/compositor/layer.h" | 62 #include "ui/compositor/layer.h" |
63 #include "ui/display/display.h" | 63 #include "ui/display/display.h" |
64 #include "ui/display/screen.h" | 64 #include "ui/display/screen.h" |
65 #include "ui/events/event_constants.h" | 65 #include "ui/events/event_constants.h" |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 .work_area() | 899 .work_area() |
900 .height(); | 900 .height(); |
901 if (work_area_height > 0) { | 901 if (work_area_height > 0) { |
902 UMA_HISTOGRAM_CUSTOM_COUNTS( | 902 UMA_HISTOGRAM_CUSTOM_COUNTS( |
903 "Ash.SystemMenu.PercentageOfWorkAreaHeightCoveredByMenu", | 903 "Ash.SystemMenu.PercentageOfWorkAreaHeightCoveredByMenu", |
904 100 * bubble_view->height() / work_area_height, 1, 300, 100); | 904 100 * bubble_view->height() / work_area_height, 1, 300, 100); |
905 } | 905 } |
906 } | 906 } |
907 | 907 |
908 } // namespace ash | 908 } // namespace ash |
OLD | NEW |