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

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

Issue 2901503003: Rename GetPreferredSize to CalculatePreferredSize in ash/ (Closed)
Patch Set: improvements 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // FontStyle::CAPTION and ColorStyle::INACTIVE. 108 // FontStyle::CAPTION and ColorStyle::INACTIVE.
109 void DoAddIconAndLabels(const gfx::ImageSkia& image, 109 void DoAddIconAndLabels(const gfx::ImageSkia& image,
110 const base::string16& text, 110 const base::string16& text,
111 TrayPopupItemStyle::FontStyle font_style, 111 TrayPopupItemStyle::FontStyle font_style,
112 const base::string16& sub_text); 112 const base::string16& sub_text);
113 113
114 // ActionableView: 114 // ActionableView:
115 bool PerformAction(const ui::Event& event) override; 115 bool PerformAction(const ui::Event& event) override;
116 116
117 // views::View: 117 // views::View:
118 gfx::Size GetPreferredSize() const override; 118 gfx::Size CalculatePreferredSize() const override;
119 int GetHeightForWidth(int width) const override; 119 int GetHeightForWidth(int width) const override;
120 void OnEnabledChanged() override; 120 void OnEnabledChanged() override;
121 void OnFocus() override; 121 void OnFocus() override;
122 122
123 // Determines whether the view is populated or not. If it is, Reset() should 123 // Determines whether the view is populated or not. If it is, Reset() should
124 // be called before re-populating the view. 124 // be called before re-populating the view.
125 bool is_populated_ = false; 125 bool is_populated_ = false;
126 126
127 ViewClickListener* const listener_ = nullptr; 127 ViewClickListener* const listener_ = nullptr;
128 views::Label* text_label_ = nullptr; 128 views::Label* text_label_ = nullptr;
129 views::Label* sub_text_label_ = nullptr; 129 views::Label* sub_text_label_ = nullptr;
130 views::ImageView* left_icon_ = nullptr; 130 views::ImageView* left_icon_ = nullptr;
131 views::View* right_view_ = nullptr; 131 views::View* right_view_ = nullptr;
132 TriView* tri_view_ = nullptr; 132 TriView* tri_view_ = nullptr;
133 bool expandable_ = false; 133 bool expandable_ = false;
134 AccessibilityState accessibility_state_ = AccessibilityState::DEFAULT; 134 AccessibilityState accessibility_state_ = AccessibilityState::DEFAULT;
135 135
136 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView); 136 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView);
137 }; 137 };
138 138
139 } // namespace ash 139 } // namespace ash
140 140
141 #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/network_state_list_detailed_view.cc ('k') | ash/system/tray/hover_highlight_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698