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

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

Issue 2690543003: Send notification to users upon receiving sms messages (Closed)
Patch Set: fix nits Created 3 years, 10 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
« no previous file with comments | « ash/common/system/system_notifier.cc ('k') | ash/common/system/tray/tray_notification_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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" 17 #include "ash/common/system/chromeos/audio/tray_audio.h"
18 #include "ash/common/system/chromeos/bluetooth/tray_bluetooth.h" 18 #include "ash/common/system/chromeos/bluetooth/tray_bluetooth.h"
19 #include "ash/common/system/chromeos/brightness/tray_brightness.h" 19 #include "ash/common/system/chromeos/brightness/tray_brightness.h"
20 #include "ash/common/system/chromeos/cast/tray_cast.h" 20 #include "ash/common/system/chromeos/cast/tray_cast.h"
21 #include "ash/common/system/chromeos/enterprise/tray_enterprise.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" 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" 23 #include "ash/common/system/chromeos/network/tray_network.h"
24 #include "ash/common/system/chromeos/network/tray_sms.h"
25 #include "ash/common/system/chromeos/network/tray_vpn.h" 24 #include "ash/common/system/chromeos/network/tray_vpn.h"
26 #include "ash/common/system/chromeos/power/power_status.h" 25 #include "ash/common/system/chromeos/power/power_status.h"
27 #include "ash/common/system/chromeos/power/tray_power.h" 26 #include "ash/common/system/chromeos/power/tray_power.h"
28 #include "ash/common/system/chromeos/screen_security/screen_capture_tray_item.h" 27 #include "ash/common/system/chromeos/screen_security/screen_capture_tray_item.h"
29 #include "ash/common/system/chromeos/screen_security/screen_share_tray_item.h" 28 #include "ash/common/system/chromeos/screen_security/screen_share_tray_item.h"
30 #include "ash/common/system/chromeos/session/tray_session_length_limit.h" 29 #include "ash/common/system/chromeos/session/tray_session_length_limit.h"
31 #include "ash/common/system/chromeos/settings/tray_settings.h" 30 #include "ash/common/system/chromeos/settings/tray_settings.h"
32 #include "ash/common/system/chromeos/supervised/tray_supervised_user.h" 31 #include "ash/common/system/chromeos/supervised/tray_supervised_user.h"
33 #include "ash/common/system/chromeos/tray_caps_lock.h" 32 #include "ash/common/system/chromeos/tray_caps_lock.h"
34 #include "ash/common/system/chromeos/tray_tracing.h" 33 #include "ash/common/system/chromeos/tray_tracing.h"
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 AddTrayItem(base::MakeUnique<TrayEnterprise>(this)); 276 AddTrayItem(base::MakeUnique<TrayEnterprise>(this));
278 AddTrayItem(base::MakeUnique<TraySupervisedUser>(this)); 277 AddTrayItem(base::MakeUnique<TraySupervisedUser>(this));
279 AddTrayItem(base::MakeUnique<TrayIME>(this)); 278 AddTrayItem(base::MakeUnique<TrayIME>(this));
280 AddTrayItem(base::WrapUnique(tray_accessibility_)); 279 AddTrayItem(base::WrapUnique(tray_accessibility_));
281 AddTrayItem(base::MakeUnique<TrayTracing>(this)); 280 AddTrayItem(base::MakeUnique<TrayTracing>(this));
282 AddTrayItem( 281 AddTrayItem(
283 base::MakeUnique<TrayPower>(this, message_center::MessageCenter::Get())); 282 base::MakeUnique<TrayPower>(this, message_center::MessageCenter::Get()));
284 tray_network_ = new TrayNetwork(this); 283 tray_network_ = new TrayNetwork(this);
285 AddTrayItem(base::WrapUnique(tray_network_)); 284 AddTrayItem(base::WrapUnique(tray_network_));
286 AddTrayItem(base::MakeUnique<TrayVPN>(this)); 285 AddTrayItem(base::MakeUnique<TrayVPN>(this));
287 AddTrayItem(base::MakeUnique<TraySms>(this));
288 AddTrayItem(base::MakeUnique<TrayBluetooth>(this)); 286 AddTrayItem(base::MakeUnique<TrayBluetooth>(this));
289 tray_cast_ = new TrayCast(this); 287 tray_cast_ = new TrayCast(this);
290 AddTrayItem(base::WrapUnique(tray_cast_)); 288 AddTrayItem(base::WrapUnique(tray_cast_));
291 screen_capture_tray_item_ = new ScreenCaptureTrayItem(this); 289 screen_capture_tray_item_ = new ScreenCaptureTrayItem(this);
292 AddTrayItem(base::WrapUnique(screen_capture_tray_item_)); 290 AddTrayItem(base::WrapUnique(screen_capture_tray_item_));
293 screen_share_tray_item_ = new ScreenShareTrayItem(this); 291 screen_share_tray_item_ = new ScreenShareTrayItem(this);
294 AddTrayItem(base::WrapUnique(screen_share_tray_item_)); 292 AddTrayItem(base::WrapUnique(screen_share_tray_item_));
295 AddTrayItem(base::MakeUnique<MultiProfileMediaTrayItem>(this)); 293 AddTrayItem(base::MakeUnique<MultiProfileMediaTrayItem>(this));
296 tray_audio_ = new TrayAudio(this); 294 tray_audio_ = new TrayAudio(this);
297 AddTrayItem(base::WrapUnique(tray_audio_)); 295 AddTrayItem(base::WrapUnique(tray_audio_));
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 .work_area() 887 .work_area()
890 .height(); 888 .height();
891 if (work_area_height > 0) { 889 if (work_area_height > 0) {
892 UMA_HISTOGRAM_CUSTOM_COUNTS( 890 UMA_HISTOGRAM_CUSTOM_COUNTS(
893 "Ash.SystemMenu.PercentageOfWorkAreaHeightCoveredByMenu", 891 "Ash.SystemMenu.PercentageOfWorkAreaHeightCoveredByMenu",
894 100 * bubble_view->height() / work_area_height, 1, 300, 100); 892 100 * bubble_view->height() / work_area_height, 1, 300, 100);
895 } 893 }
896 } 894 }
897 895
898 } // namespace ash 896 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/system/system_notifier.cc ('k') | ash/common/system/tray/tray_notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698