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

Side by Side Diff: ash/common/system/chromeos/screen_security/screen_tray_item.h

Issue 2162153002: Added Ash.SystemMenu.DefaultView.VisibleItems histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the COUNT value from the SystemMenuDefaultViewRows enum. Created 4 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_TRAY_ITEM_H_ 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_TRAY_ITEM_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_TRAY_ITEM_H_ 6 #define ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_TRAY_ITEM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/common/system/tray/system_tray.h" 10 #include "ash/common/system/tray/system_tray.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 DISALLOW_COPY_AND_ASSIGN(ScreenNotificationDelegate); 84 DISALLOW_COPY_AND_ASSIGN(ScreenNotificationDelegate);
85 }; 85 };
86 86
87 } // namespace tray 87 } // namespace tray
88 88
89 // The base tray item for screen capture and screen sharing. The 89 // The base tray item for screen capture and screen sharing. The
90 // Start method brings up a notification and a tray item, and the user 90 // Start method brings up a notification and a tray item, and the user
91 // can stop the screen capture/sharing by pressing the stop button. 91 // can stop the screen capture/sharing by pressing the stop button.
92 class ASH_EXPORT ScreenTrayItem : public SystemTrayItem { 92 class ASH_EXPORT ScreenTrayItem : public SystemTrayItem {
93 public: 93 public:
94 explicit ScreenTrayItem(SystemTray* system_tray); 94 ScreenTrayItem(SystemTray* system_tray, UmaType uma_type);
95 ~ScreenTrayItem() override; 95 ~ScreenTrayItem() override;
96 96
97 tray::ScreenTrayView* tray_view() { return tray_view_; } 97 tray::ScreenTrayView* tray_view() { return tray_view_; }
98 void set_tray_view(tray::ScreenTrayView* tray_view) { 98 void set_tray_view(tray::ScreenTrayView* tray_view) {
99 tray_view_ = tray_view; 99 tray_view_ = tray_view;
100 } 100 }
101 101
102 tray::ScreenStatusView* default_view() { return default_view_; } 102 tray::ScreenStatusView* default_view() { return default_view_; }
103 void set_default_view(tray::ScreenStatusView* default_view) { 103 void set_default_view(tray::ScreenStatusView* default_view) {
104 default_view_ = default_view; 104 default_view_ = default_view;
(...skipping 30 matching lines...) Expand all
135 tray::ScreenStatusView* default_view_; 135 tray::ScreenStatusView* default_view_;
136 bool is_started_; 136 bool is_started_;
137 base::Closure stop_callback_; 137 base::Closure stop_callback_;
138 138
139 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem); 139 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem);
140 }; 140 };
141 141
142 } // namespace ash 142 } // namespace ash
143 143
144 #endif // ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_TRAY_ITEM_H_ 144 #endif // ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_TRAY_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698