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

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

Issue 1469733003: system tray ui change for AllowOnlyPolicyNetworksToConnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix shared build Created 5 years, 1 month 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 "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 void set_highlight_color(SkColor color) { highlight_color_ = color; } 60 void set_highlight_color(SkColor color) { highlight_color_ = color; }
61 void set_default_color(SkColor color) { default_color_ = color; } 61 void set_default_color(SkColor color) { default_color_ = color; }
62 void set_text_highlight_color(SkColor c) { text_highlight_color_ = c; } 62 void set_text_highlight_color(SkColor c) { text_highlight_color_ = c; }
63 void set_text_default_color(SkColor color) { text_default_color_ = color; } 63 void set_text_default_color(SkColor color) { text_default_color_ = color; }
64 64
65 views::Label* text_label() { return text_label_; } 65 views::Label* text_label() { return text_label_; }
66 66
67 bool hover() const { return hover_; } 67 bool hover() const { return hover_; }
68 68
69 bool GetTooltipText(const gfx::Point& p,
70 base::string16* tooltip) const override;
71 void SetTooltipText(const base::string16& tooltip);
72
69 protected: 73 protected:
70 // Overridden from views::View. 74 // Overridden from views::View.
71 void GetAccessibleState(ui::AXViewState* state) override; 75 void GetAccessibleState(ui::AXViewState* state) override;
72 76
73 // Sets the highlighted color on a text label if |hover| is set. 77 // Sets the highlighted color on a text label if |hover| is set.
74 void SetHoverHighlight(bool hover); 78 void SetHoverHighlight(bool hover);
75 79
76 private: 80 private:
77 // Actually adds the icon and label but does not set the layout manager 81 // Actually adds the icon and label but does not set the layout manager
78 void DoAddIconAndLabel(const gfx::ImageSkia& image, 82 void DoAddIconAndLabel(const gfx::ImageSkia& image,
(...skipping 17 matching lines...) Expand all
96 ViewClickListener* listener_; 100 ViewClickListener* listener_;
97 views::Label* text_label_; 101 views::Label* text_label_;
98 SkColor highlight_color_; 102 SkColor highlight_color_;
99 SkColor default_color_; 103 SkColor default_color_;
100 SkColor text_highlight_color_; 104 SkColor text_highlight_color_;
101 SkColor text_default_color_; 105 SkColor text_default_color_;
102 bool hover_; 106 bool hover_;
103 bool expandable_; 107 bool expandable_;
104 bool checkable_; 108 bool checkable_;
105 bool checked_; 109 bool checked_;
110 base::string16 tooltip_;
106 111
107 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView); 112 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView);
108 }; 113 };
109 114
110 } // namespace ash 115 } // namespace ash
111 116
112 #endif // ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_ 117 #endif // ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698