| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_POPUP_ITEM_STYLE_H_ | 5 #ifndef ASH_SYSTEM_TRAY_TRAY_POPUP_ITEM_STYLE_H_ |
| 6 #define ASH_SYSTEM_TRAY_TRAY_POPUP_ITEM_STYLE_H_ | 6 #define ASH_SYSTEM_TRAY_TRAY_POPUP_ITEM_STYLE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // The different font styles that row text can have. | 34 // The different font styles that row text can have. |
| 35 enum class FontStyle { | 35 enum class FontStyle { |
| 36 // Topmost header rows for default view and detailed view. | 36 // Topmost header rows for default view and detailed view. |
| 37 TITLE, | 37 TITLE, |
| 38 // Main text used by default view rows. | 38 // Main text used by default view rows. |
| 39 DEFAULT_VIEW_LABEL, | 39 DEFAULT_VIEW_LABEL, |
| 40 // Text in sub-section header rows in detailed views. | 40 // Text in sub-section header rows in detailed views. |
| 41 SUB_HEADER, | 41 SUB_HEADER, |
| 42 // Main text used by detailed view rows. | 42 // Main text used by detailed view rows. |
| 43 DETAILED_VIEW_LABEL, | 43 DETAILED_VIEW_LABEL, |
| 44 // System information text (e.g. date/time, battery status, etc). | 44 // System information text (e.g. date/time, battery status, "Scanning for |
| 45 // devices..." seen in the Bluetooth detailed view, etc). |
| 45 SYSTEM_INFO, | 46 SYSTEM_INFO, |
| 46 // Child buttons within rows that have a visible border (e.g. Cast's | 47 // Child buttons within rows that have a visible border (e.g. Cast's |
| 47 // "Stop", etc). | 48 // "Stop", etc). |
| 48 BUTTON, | 49 BUTTON, |
| 49 // Sub text within a row (e.g. user name in user row). | 50 // Sub text within a row (e.g. user name in user row). |
| 50 CAPTION, | 51 CAPTION, |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 static constexpr double kInactiveIconAlpha = 0.54; | 54 static constexpr double kInactiveIconAlpha = 0.54; |
| 54 | 55 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 76 FontStyle font_style_; | 77 FontStyle font_style_; |
| 77 | 78 |
| 78 ColorStyle color_style_; | 79 ColorStyle color_style_; |
| 79 | 80 |
| 80 DISALLOW_COPY_AND_ASSIGN(TrayPopupItemStyle); | 81 DISALLOW_COPY_AND_ASSIGN(TrayPopupItemStyle); |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 } // namespace ash | 84 } // namespace ash |
| 84 | 85 |
| 85 #endif // ASH_SYSTEM_TRAY_TRAY_POPUP_ITEM_STYLE_H_ | 86 #endif // ASH_SYSTEM_TRAY_TRAY_POPUP_ITEM_STYLE_H_ |
| OLD | NEW |