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

Side by Side Diff: ash/common/system/tray/tray_image_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, 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
« no previous file with comments | « ash/common/system/tray/tray_empty.cc ('k') | ash/common/system/tray/tray_image_item.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 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_IMAGE_ITEM_H_ 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_IMAGE_ITEM_H_
6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_IMAGE_ITEM_H_ 6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_IMAGE_ITEM_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/system/tray/system_tray_item.h" 9 #include "ash/common/system/tray/system_tray_item.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace views { 12 namespace views {
13 class ImageView; 13 class ImageView;
14 } 14 }
15 15
16 namespace ash { 16 namespace ash {
17 class TrayItemView; 17 class TrayItemView;
18 18
19 class ASH_EXPORT TrayImageItem : public SystemTrayItem { 19 class ASH_EXPORT TrayImageItem : public SystemTrayItem {
20 public: 20 public:
21 TrayImageItem(SystemTray* system_tray, int resource_id); 21 TrayImageItem(SystemTray* system_tray, int resource_id, UmaType uma_type);
22 ~TrayImageItem() override; 22 ~TrayImageItem() override;
23 23
24 views::View* tray_view(); 24 views::View* tray_view();
25 25
26 protected: 26 protected:
27 virtual bool GetInitialVisibility() = 0; 27 virtual bool GetInitialVisibility() = 0;
28 28
29 // Overridden from SystemTrayItem. 29 // Overridden from SystemTrayItem.
30 views::View* CreateTrayView(LoginStatus status) override; 30 views::View* CreateTrayView(LoginStatus status) override;
31 views::View* CreateDefaultView(LoginStatus status) override; 31 views::View* CreateDefaultView(LoginStatus status) override;
(...skipping 13 matching lines...) Expand all
45 45
46 int resource_id_; 46 int resource_id_;
47 TrayItemView* tray_view_; 47 TrayItemView* tray_view_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(TrayImageItem); 49 DISALLOW_COPY_AND_ASSIGN(TrayImageItem);
50 }; 50 };
51 51
52 } // namespace ash 52 } // namespace ash
53 53
54 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_IMAGE_ITEM_H_ 54 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_IMAGE_ITEM_H_
OLDNEW
« no previous file with comments | « ash/common/system/tray/tray_empty.cc ('k') | ash/common/system/tray/tray_image_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698