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

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

Issue 2228183002: Updates to icons for Ash material design system tray (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gfx namespace 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 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 10 matching lines...) Expand all
21 class View; 21 class View;
22 } 22 }
23 23
24 namespace ash { 24 namespace ash {
25 class ScreenTrayItem; 25 class ScreenTrayItem;
26 26
27 namespace tray { 27 namespace tray {
28 28
29 class ScreenTrayView : public TrayItemView { 29 class ScreenTrayView : public TrayItemView {
30 public: 30 public:
31 ScreenTrayView(ScreenTrayItem* screen_tray_item, int icon_id); 31 explicit ScreenTrayView(ScreenTrayItem* screen_tray_item);
32 ~ScreenTrayView() override; 32 ~ScreenTrayView() override;
33 33
34 void Update(); 34 void Update();
35 35
36 private: 36 private:
37 ScreenTrayItem* screen_tray_item_; 37 ScreenTrayItem* screen_tray_item_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(ScreenTrayView); 39 DISALLOW_COPY_AND_ASSIGN(ScreenTrayView);
40 }; 40 };
41 41
42 class ScreenStatusView : public views::View, public views::ButtonListener { 42 class ScreenStatusView : public views::View, public views::ButtonListener {
43 public: 43 public:
44 ScreenStatusView(ScreenTrayItem* screen_tray_item, 44 ScreenStatusView(ScreenTrayItem* screen_tray_item,
45 int icon_id,
46 const base::string16& label_text, 45 const base::string16& label_text,
47 const base::string16& stop_button_text); 46 const base::string16& stop_button_text);
48 ~ScreenStatusView() override; 47 ~ScreenStatusView() override;
49 48
50 // Overridden from views::View. 49 // Overridden from views::View.
51 void Layout() override; 50 void Layout() override;
52 51
53 // Overridden from views::ButtonListener. 52 // Overridden from views::ButtonListener.
54 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 53 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
55 54
56 void CreateItems(); 55 void CreateItems();
57 void Update(); 56 void Update();
58 57
59 private: 58 private:
60 ScreenTrayItem* screen_tray_item_; 59 ScreenTrayItem* screen_tray_item_;
61 views::ImageView* icon_; 60 views::ImageView* icon_;
62 views::Label* label_; 61 views::Label* label_;
63 TrayPopupLabelButton* stop_button_; 62 TrayPopupLabelButton* stop_button_;
64 int icon_id_;
James Cook 2016/08/09 23:55:02 Hooray for removing unused code!
65 base::string16 label_text_; 63 base::string16 label_text_;
66 base::string16 stop_button_text_; 64 base::string16 stop_button_text_;
67 65
68 DISALLOW_COPY_AND_ASSIGN(ScreenStatusView); 66 DISALLOW_COPY_AND_ASSIGN(ScreenStatusView);
69 }; 67 };
70 68
71 class ScreenNotificationDelegate : public message_center::NotificationDelegate { 69 class ScreenNotificationDelegate : public message_center::NotificationDelegate {
72 public: 70 public:
73 explicit ScreenNotificationDelegate(ScreenTrayItem* screen_tray); 71 explicit ScreenNotificationDelegate(ScreenTrayItem* screen_tray);
74 72
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 tray::ScreenStatusView* default_view_; 133 tray::ScreenStatusView* default_view_;
136 bool is_started_; 134 bool is_started_;
137 base::Closure stop_callback_; 135 base::Closure stop_callback_;
138 136
139 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem); 137 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem);
140 }; 138 };
141 139
142 } // namespace ash 140 } // namespace ash
143 141
144 #endif // ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_TRAY_ITEM_H_ 142 #endif // ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_TRAY_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698