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

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

Issue 2869053002: Merge NetworkListViewBase hierarchy and NetworkStateListDetailedView (Closed)
Patch Set: Created 3 years, 7 months 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 "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
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
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_
OLDNEW
« no previous file with comments | « ash/system/network/vpn_list_view.cc ('k') | chrome/browser/ui/ash/networking_config_delegate_chromeos_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698