OLD | NEW |
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_VIEWS_H_ | 5 #ifndef ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ |
6 #define ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ | 6 #define ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/gfx/font.h" | 9 #include "ui/gfx/font.h" |
10 #include "ui/gfx/size.h" | 10 #include "ui/gfx/size.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 void set_default_color(SkColor color) { default_color_ = color; } | 89 void set_default_color(SkColor color) { default_color_ = color; } |
90 | 90 |
91 private: | 91 private: |
92 // Overridden from ActionableView. | 92 // Overridden from ActionableView. |
93 virtual bool PerformAction(const views::Event& event) OVERRIDE; | 93 virtual bool PerformAction(const views::Event& event) OVERRIDE; |
94 | 94 |
95 // Overridden from views::View. | 95 // Overridden from views::View. |
96 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; | 96 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; |
97 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | 97 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; |
98 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 98 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 99 virtual void OnEnabledChanged() OVERRIDE; |
99 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; | 100 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; |
100 | 101 |
101 ViewClickListener* listener_; | 102 ViewClickListener* listener_; |
102 string16 accessible_name_; | 103 string16 accessible_name_; |
103 SkColor highlight_color_; | 104 SkColor highlight_color_; |
104 SkColor default_color_; | 105 SkColor default_color_; |
105 bool hover_; | 106 bool hover_; |
106 | 107 |
107 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView); | 108 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView); |
108 }; | 109 }; |
(...skipping 26 matching lines...) Expand all Loading... |
135 views::View* CreateDetailedHeaderEntry(int string_id, | 136 views::View* CreateDetailedHeaderEntry(int string_id, |
136 ViewClickListener* listener); | 137 ViewClickListener* listener); |
137 | 138 |
138 // Sets up a Label properly for the tray (sets color, font etc.). | 139 // Sets up a Label properly for the tray (sets color, font etc.). |
139 void SetupLabelForTray(views::Label* label); | 140 void SetupLabelForTray(views::Label* label); |
140 | 141 |
141 } // namespace internal | 142 } // namespace internal |
142 } // namespace ash | 143 } // namespace ash |
143 | 144 |
144 #endif // ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ | 145 #endif // ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ |
OLD | NEW |