Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_APP_LIST_VIEWS_INDICATOR_CHIP_VIEW_H_ | |
| 6 #define UI_APP_LIST_VIEWS_INDICATOR_CHIP_VIEW_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "ui/views/view.h" | |
| 10 | |
| 11 namespace views { | |
| 12 class Label; | |
| 13 } // namespace views | |
| 14 | |
| 15 namespace app_list { | |
| 16 | |
| 17 // IndicatorChipView consists of a label and is used on top of app tiles for | |
| 18 // indication purpose. | |
| 19 class IndicatorChipView : public views::View { | |
| 20 public: | |
| 21 explicit IndicatorChipView(base::string16 text); | |
|
xiyuan
2017/06/22 22:33:52
nit: base::string16 -> const base::string16&
and
Qiang(Joe) Xu
2017/06/22 22:47:27
Done.
| |
| 22 ~IndicatorChipView() override; | |
| 23 | |
| 24 private: | |
| 25 // views::View overridden: | |
| 26 gfx::Size CalculatePreferredSize() const override; | |
| 27 void Layout() override; | |
| 28 | |
| 29 views::View* container_ = nullptr; // Owned by views hierarchy. | |
| 30 views::Label* label_ = nullptr; // Owned by views hierarchy. | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(IndicatorChipView); | |
| 33 }; | |
| 34 | |
| 35 } // namespace app_list | |
| 36 | |
| 37 #endif // UI_APP_LIST_VIEWS_INDICATOR_CHIP_VIEW_H_ | |
| OLD | NEW |