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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 public: | 184 public: |
185 TrayPopupHeaderButton(views::ButtonListener* listener, | 185 TrayPopupHeaderButton(views::ButtonListener* listener, |
186 int enabled_resource_id, | 186 int enabled_resource_id, |
187 int disabled_resource_id); | 187 int disabled_resource_id); |
188 virtual ~TrayPopupHeaderButton(); | 188 virtual ~TrayPopupHeaderButton(); |
189 | 189 |
190 private: | 190 private: |
191 // Overridden from views::View. | 191 // Overridden from views::View. |
192 virtual gfx::Size GetPreferredSize() OVERRIDE; | 192 virtual gfx::Size GetPreferredSize() OVERRIDE; |
193 virtual void OnPaintBorder(gfx::Canvas* canvas) OVERRIDE; | 193 virtual void OnPaintBorder(gfx::Canvas* canvas) OVERRIDE; |
| 194 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; |
194 | 195 |
195 // Overridden from views::CustomButton. | 196 // Overridden from views::CustomButton. |
196 virtual void StateChanged() OVERRIDE; | 197 virtual void StateChanged() OVERRIDE; |
197 | 198 |
198 DISALLOW_COPY_AND_ASSIGN(TrayPopupHeaderButton); | 199 DISALLOW_COPY_AND_ASSIGN(TrayPopupHeaderButton); |
199 }; | 200 }; |
200 | 201 |
201 // Creates a container for the various detailed popups. Clicking on the view | 202 // Creates a container for the various detailed popups. Clicking on the view |
202 // triggers the callback in ViewClickListener. | 203 // triggers the callback in ViewClickListener. |
203 views::View* CreateDetailedHeaderEntry(int string_id, | 204 views::View* CreateDetailedHeaderEntry(int string_id, |
204 ViewClickListener* listener); | 205 ViewClickListener* listener); |
205 | 206 |
206 // Sets up a Label properly for the tray (sets color, font etc.). | 207 // Sets up a Label properly for the tray (sets color, font etc.). |
207 void SetupLabelForTray(views::Label* label); | 208 void SetupLabelForTray(views::Label* label); |
208 | 209 |
209 } // namespace internal | 210 } // namespace internal |
210 } // namespace ash | 211 } // namespace ash |
211 | 212 |
212 #endif // ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ | 213 #endif // ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ |
OLD | NEW |