Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: ash/common/system/tray/system_tray.cc

Issue 2430593002: mash: Use ash shell window container ids instead of ash::mojom::Container (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "ash/common/key_event_watcher.h" 7 #include "ash/common/key_event_watcher.h"
8 #include "ash/common/login_status.h" 8 #include "ash/common/login_status.h"
9 #include "ash/common/material_design/material_design_controller.h" 9 #include "ash/common/material_design/material_design_controller.h"
10 #include "ash/common/session/session_state_delegate.h" 10 #include "ash/common/session/session_state_delegate.h"
11 #include "ash/common/shelf/wm_shelf.h" 11 #include "ash/common/shelf/wm_shelf.h"
12 #include "ash/common/shelf/wm_shelf_util.h" 12 #include "ash/common/shelf/wm_shelf_util.h"
13 #include "ash/common/shell_window_ids.h"
14 #include "ash/common/system/cast/tray_cast.h" 13 #include "ash/common/system/cast/tray_cast.h"
15 #include "ash/common/system/date/tray_date.h" 14 #include "ash/common/system/date/tray_date.h"
16 #include "ash/common/system/tiles/tray_tiles.h" 15 #include "ash/common/system/tiles/tray_tiles.h"
17 #include "ash/common/system/tray/system_tray_controller.h" 16 #include "ash/common/system/tray/system_tray_controller.h"
18 #include "ash/common/system/tray/system_tray_delegate.h" 17 #include "ash/common/system/tray/system_tray_delegate.h"
19 #include "ash/common/system/tray/system_tray_item.h" 18 #include "ash/common/system/tray/system_tray_item.h"
20 #include "ash/common/system/tray/tray_bubble_wrapper.h" 19 #include "ash/common/system/tray/tray_bubble_wrapper.h"
21 #include "ash/common/system/tray/tray_constants.h" 20 #include "ash/common/system/tray/tray_constants.h"
22 #include "ash/common/system/tray_accessibility.h" 21 #include "ash/common/system/tray_accessibility.h"
23 #include "ash/common/system/update/tray_update.h" 22 #include "ash/common/system/update/tray_update.h"
24 #include "ash/common/system/user/tray_user.h" 23 #include "ash/common/system/user/tray_user.h"
25 #include "ash/common/system/user/tray_user_separator.h" 24 #include "ash/common/system/user/tray_user_separator.h"
26 #include "ash/common/system/web_notification/web_notification_tray.h" 25 #include "ash/common/system/web_notification/web_notification_tray.h"
27 #include "ash/common/wm/container_finder.h" 26 #include "ash/common/wm/container_finder.h"
28 #include "ash/common/wm_activation_observer.h" 27 #include "ash/common/wm_activation_observer.h"
29 #include "ash/common/wm_lookup.h" 28 #include "ash/common/wm_lookup.h"
30 #include "ash/common/wm_root_window_controller.h" 29 #include "ash/common/wm_root_window_controller.h"
31 #include "ash/common/wm_shell.h" 30 #include "ash/common/wm_shell.h"
32 #include "ash/common/wm_window.h" 31 #include "ash/common/wm_window.h"
32 #include "ash/public/cpp/shell_window_ids.h"
33 #include "base/logging.h" 33 #include "base/logging.h"
34 #include "base/metrics/histogram.h" 34 #include "base/metrics/histogram.h"
35 #include "base/strings/utf_string_conversions.h" 35 #include "base/strings/utf_string_conversions.h"
36 #include "base/timer/timer.h" 36 #include "base/timer/timer.h"
37 #include "grit/ash_strings.h" 37 #include "grit/ash_strings.h"
38 #include "ui/base/accelerators/accelerator.h" 38 #include "ui/base/accelerators/accelerator.h"
39 #include "ui/base/l10n/l10n_util.h" 39 #include "ui/base/l10n/l10n_util.h"
40 #include "ui/compositor/layer.h" 40 #include "ui/compositor/layer.h"
41 #include "ui/display/display.h" 41 #include "ui/display/display.h"
42 #include "ui/display/screen.h" 42 #include "ui/display/screen.h"
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 .work_area() 888 .work_area()
889 .height(); 889 .height();
890 if (work_area_height > 0) { 890 if (work_area_height > 0) {
891 UMA_HISTOGRAM_CUSTOM_COUNTS( 891 UMA_HISTOGRAM_CUSTOM_COUNTS(
892 "Ash.SystemMenu.PercentageOfWorkAreaHeightCoveredByMenu", 892 "Ash.SystemMenu.PercentageOfWorkAreaHeightCoveredByMenu",
893 100 * bubble_view->height() / work_area_height, 1, 300, 100); 893 100 * bubble_view->height() / work_area_height, 1, 300, 100);
894 } 894 }
895 } 895 }
896 896
897 } // namespace ash 897 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/system/toast/toast_overlay.cc ('k') | ash/common/system/tray/system_tray_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698