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

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

Issue 2846883006: cros: Update rotation lock UI (Closed)
Patch Set: cleanup tests Created 3 years, 7 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/rotation/tray_rotation_lock_unittest.cc ('k') | ash/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_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/ash_export.h"
9 #include "ash/system/tray/system_tray_item.h" 9 #include "ash/system/tray/system_tray_item.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 23 matching lines...) Expand all
34 protected: 34 protected:
35 virtual bool GetInitialVisibility() = 0; 35 virtual bool GetInitialVisibility() = 0;
36 36
37 // Overridden from SystemTrayItem. 37 // Overridden from SystemTrayItem.
38 views::View* CreateTrayView(LoginStatus status) override; 38 views::View* CreateTrayView(LoginStatus status) override;
39 void DestroyTrayView() override; 39 void DestroyTrayView() override;
40 40
41 // Sets the color of the icon to |color|. 41 // Sets the color of the icon to |color|.
42 void SetIconColor(SkColor color); 42 void SetIconColor(SkColor color);
43 43
44 // Sets showing |icon| on |tray_view_|'s ImageView.
45 void SetImageIcon(const gfx::VectorIcon& icon);
46
44 private: 47 private:
45 // Sets the current icon on |tray_view_|'s ImageView.
46 void UpdateImageOnImageView();
47
48 // The icon and its current color. 48 // The icon and its current color.
49 const gfx::VectorIcon& icon_; 49 const gfx::VectorIcon& icon_;
50 SkColor icon_color_; 50 SkColor icon_color_;
51 51
52 // The image view in the tray. 52 // The image view in the tray.
53 TrayItemView* tray_view_; 53 TrayItemView* tray_view_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(TrayImageItem); 55 DISALLOW_COPY_AND_ASSIGN(TrayImageItem);
56 }; 56 };
57 57
58 } // namespace ash 58 } // namespace ash
59 59
60 #endif // ASH_SYSTEM_TRAY_TRAY_IMAGE_ITEM_H_ 60 #endif // ASH_SYSTEM_TRAY_TRAY_IMAGE_ITEM_H_
OLDNEW
« no previous file with comments | « ash/system/rotation/tray_rotation_lock_unittest.cc ('k') | ash/system/tray/tray_image_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698