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

Side by Side Diff: ash/system/tray/tray_image_item.h

Issue 2060003002: ash: Add a unit test for the system update tray item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@movetraydelegate
Patch Set: rebase Created 4 years, 6 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/system/tray/system_tray.cc ('k') | ash/system/tray_update.h » ('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_SYSTEM_TRAY_TRAY_IMAGE_ITEM_H_ 5 #ifndef ASH_SYSTEM_TRAY_TRAY_IMAGE_ITEM_H_
6 #define ASH_SYSTEM_TRAY_TRAY_IMAGE_ITEM_H_ 6 #define ASH_SYSTEM_TRAY_TRAY_IMAGE_ITEM_H_
7 7
8 #include "ash/ash_export.h"
8 #include "ash/system/tray/system_tray_item.h" 9 #include "ash/system/tray/system_tray_item.h"
9 #include "base/macros.h" 10 #include "base/macros.h"
10 11
11 namespace views { 12 namespace views {
12 class ImageView; 13 class ImageView;
13 } 14 }
14 15
15 namespace ash { 16 namespace ash {
16 class TrayItemView; 17 class TrayItemView;
17 18
18 class TrayImageItem : public SystemTrayItem { 19 class ASH_EXPORT TrayImageItem : public SystemTrayItem {
19 public: 20 public:
20 TrayImageItem(SystemTray* system_tray, int resource_id); 21 TrayImageItem(SystemTray* system_tray, int resource_id);
21 ~TrayImageItem() override; 22 ~TrayImageItem() override;
22 23
23 views::View* tray_view(); 24 views::View* tray_view();
24 25
25 // Changes the icon of the tray-view to the specified resource. 26 // Changes the icon of the tray-view to the specified resource.
26 void SetImageFromResourceId(int resource_id); 27 void SetImageFromResourceId(int resource_id);
27 28
28 protected: 29 protected:
(...skipping 15 matching lines...) Expand all
44 45
45 int resource_id_; 46 int resource_id_;
46 TrayItemView* tray_view_; 47 TrayItemView* tray_view_;
47 48
48 DISALLOW_COPY_AND_ASSIGN(TrayImageItem); 49 DISALLOW_COPY_AND_ASSIGN(TrayImageItem);
49 }; 50 };
50 51
51 } // namespace ash 52 } // namespace ash
52 53
53 #endif // ASH_SYSTEM_TRAY_TRAY_IMAGE_ITEM_H_ 54 #endif // ASH_SYSTEM_TRAY_TRAY_IMAGE_ITEM_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray_update.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698