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

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

Issue 2832903002: cros: Remove supervised user methods from SystemTrayDelegate (Closed)
Patch Set: rebase Created 3 years, 8 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_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_ 5 #ifndef ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_
6 #define ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_ 6 #define ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_
7 7
8 #include "ash/system/tray/actionable_view.h" 8 #include "ash/system/tray/actionable_view.h"
9 #include "ash/system/tray/tray_popup_item_style.h" 9 #include "ash/system/tray/tray_popup_item_style.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 16 matching lines...) Expand all
27 public: 27 public:
28 enum class AccessibilityState { 28 enum class AccessibilityState {
29 // The default accessibility view. 29 // The default accessibility view.
30 DEFAULT, 30 DEFAULT,
31 // This view is a checked checkbox. 31 // This view is a checked checkbox.
32 CHECKED_CHECKBOX, 32 CHECKED_CHECKBOX,
33 // This view is an unchecked checkbox. 33 // This view is an unchecked checkbox.
34 UNCHECKED_CHECKBOX 34 UNCHECKED_CHECKBOX
35 }; 35 };
36 36
37 // If |listener| is null then no action is taken on click.
37 explicit HoverHighlightView(ViewClickListener* listener); 38 explicit HoverHighlightView(ViewClickListener* listener);
38 ~HoverHighlightView() override; 39 ~HoverHighlightView() override;
39 40
40 // Convenience function for adding an icon and a label. This also sets the 41 // Convenience function for adding an icon and a label. This also sets the
41 // accessible name. Primarily used for scrollable rows in detailed views. 42 // accessible name. Primarily used for scrollable rows in detailed views.
42 void AddIconAndLabel(const gfx::ImageSkia& image, const base::string16& text); 43 void AddIconAndLabel(const gfx::ImageSkia& image, const base::string16& text);
43 44
44 // Convenience function for adding an icon, a main label, and a sub label. 45 // Convenience function for adding an icon, a main label, and a sub label.
45 // This also sets the accessible name besed on the main label. Used for 46 // This also sets the accessible name besed on the main label. Used for
46 // scrollable rows in detailed views. 47 // scrollable rows in detailed views.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 TriView* tri_view_ = nullptr; 118 TriView* tri_view_ = nullptr;
118 bool expandable_ = false; 119 bool expandable_ = false;
119 AccessibilityState accessibility_state_ = AccessibilityState::DEFAULT; 120 AccessibilityState accessibility_state_ = AccessibilityState::DEFAULT;
120 121
121 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView); 122 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView);
122 }; 123 };
123 124
124 } // namespace ash 125 } // namespace ash
125 126
126 #endif // ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_ 127 #endif // ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/supervised/tray_supervised_user_unittest.cc ('k') | ash/system/tray/label_tray_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698