| OLD | NEW |
| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // equals to kTrayPopupItemHeight. | 78 // equals to kTrayPopupItemHeight. |
| 79 void SetExpandable(bool expandable); | 79 void SetExpandable(bool expandable); |
| 80 | 80 |
| 81 // Changes the view's current accessibility state. This will fire an | 81 // Changes the view's current accessibility state. This will fire an |
| 82 // accessibility event if needed. | 82 // accessibility event if needed. |
| 83 void SetAccessiblityState(AccessibilityState accessibility_state); | 83 void SetAccessiblityState(AccessibilityState accessibility_state); |
| 84 | 84 |
| 85 // Removes current children of the view so that it can be re-populated. | 85 // Removes current children of the view so that it can be re-populated. |
| 86 void Reset(); | 86 void Reset(); |
| 87 | 87 |
| 88 bool is_populated() const { return is_populated_; } |
| 89 |
| 88 views::Label* text_label() { return text_label_; } | 90 views::Label* text_label() { return text_label_; } |
| 89 views::Label* sub_text_label() { return sub_text_label_; } | 91 views::Label* sub_text_label() { return sub_text_label_; } |
| 90 | 92 |
| 91 protected: | 93 protected: |
| 92 // views::View: | 94 // views::View: |
| 93 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; | 95 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 94 | 96 |
| 95 TriView* tri_view() { return tri_view_; } | 97 TriView* tri_view() { return tri_view_; } |
| 96 | 98 |
| 97 private: | 99 private: |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 TriView* tri_view_ = nullptr; | 132 TriView* tri_view_ = nullptr; |
| 131 bool expandable_ = false; | 133 bool expandable_ = false; |
| 132 AccessibilityState accessibility_state_ = AccessibilityState::DEFAULT; | 134 AccessibilityState accessibility_state_ = AccessibilityState::DEFAULT; |
| 133 | 135 |
| 134 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView); | 136 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView); |
| 135 }; | 137 }; |
| 136 | 138 |
| 137 } // namespace ash | 139 } // namespace ash |
| 138 | 140 |
| 139 #endif // ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_ | 141 #endif // ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_ |
| OLD | NEW |