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

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

Issue 2217713002: Remove the system menu display settings row (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/ash_switches.h" 7 #include "ash/common/ash_switches.h"
8 #include "ash/common/login_status.h" 8 #include "ash/common/login_status.h"
9 #include "ash/common/session/session_state_delegate.h" 9 #include "ash/common/session/session_state_delegate.h"
10 #include "ash/common/shelf/wm_shelf.h" 10 #include "ash/common/shelf/wm_shelf.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 AddTrayItem(new TrayIME(this)); 188 AddTrayItem(new TrayIME(this));
189 AddTrayItem(tray_accessibility_); 189 AddTrayItem(tray_accessibility_);
190 AddTrayItem(new TrayTracing(this)); 190 AddTrayItem(new TrayTracing(this));
191 AddTrayItem(new TrayPower(this, message_center::MessageCenter::Get())); 191 AddTrayItem(new TrayPower(this, message_center::MessageCenter::Get()));
192 AddTrayItem(new TrayNetwork(this)); 192 AddTrayItem(new TrayNetwork(this));
193 AddTrayItem(new TrayVPN(this)); 193 AddTrayItem(new TrayVPN(this));
194 AddTrayItem(new TraySms(this)); 194 AddTrayItem(new TraySms(this));
195 AddTrayItem(new TrayBluetooth(this)); 195 AddTrayItem(new TrayBluetooth(this));
196 tray_cast_ = new TrayCast(this); 196 tray_cast_ = new TrayCast(this);
197 AddTrayItem(tray_cast_); 197 AddTrayItem(tray_cast_);
198 // TODO(jamescook): Remove this when mus has support for display management 198 // TODO(jamescook): Remove this when mus has support for display management
James Cook 2016/08/05 17:00:24 Delete this comment.
yiyix 2016/08/13 05:28:50 Done.
199 // and we have a DisplayManager equivalent. See http://crbug.com/548429 199 // and we have a DisplayManager equivalent. See http://crbug.com/548429
200 std::unique_ptr<SystemTrayItem> tray_display =
201 delegate->CreateDisplayTrayItem(this);
202 if (tray_display)
203 AddTrayItem(tray_display.release());
204 screen_capture_tray_item_ = new ScreenCaptureTrayItem(this); 200 screen_capture_tray_item_ = new ScreenCaptureTrayItem(this);
205 AddTrayItem(screen_capture_tray_item_); 201 AddTrayItem(screen_capture_tray_item_);
206 screen_share_tray_item_ = new ScreenShareTrayItem(this); 202 screen_share_tray_item_ = new ScreenShareTrayItem(this);
207 AddTrayItem(screen_share_tray_item_); 203 AddTrayItem(screen_share_tray_item_);
208 AddTrayItem(new MultiProfileMediaTrayItem(this)); 204 AddTrayItem(new MultiProfileMediaTrayItem(this));
209 AddTrayItem(new TrayAudioChromeOs(this)); 205 AddTrayItem(new TrayAudioChromeOs(this));
210 AddTrayItem(new TrayBrightness(this)); 206 AddTrayItem(new TrayBrightness(this));
211 AddTrayItem(new TrayCapsLock(this)); 207 AddTrayItem(new TrayCapsLock(this));
212 // TODO(jamescook): Remove this when mus has support for display management 208 // TODO(jamescook): Remove this when mus has support for display management
213 // and we have a DisplayManager equivalent. See http://crbug.com/548429 209 // and we have a DisplayManager equivalent. See http://crbug.com/548429
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 .work_area() 765 .work_area()
770 .height(); 766 .height();
771 if (work_area_height > 0) { 767 if (work_area_height > 0) {
772 UMA_HISTOGRAM_CUSTOM_COUNTS( 768 UMA_HISTOGRAM_CUSTOM_COUNTS(
773 "Ash.SystemMenu.PercentageOfWorkAreaHeightCoveredByMenu", 769 "Ash.SystemMenu.PercentageOfWorkAreaHeightCoveredByMenu",
774 100 * bubble_view->height() / work_area_height, 1, 300, 100); 770 100 * bubble_view->height() / work_area_height, 1, 300, 100);
775 } 771 }
776 } 772 }
777 773
778 } // namespace ash 774 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698