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

Side by Side Diff: ui/app_list/views/indicator_chip_view.h

Issue 2952303002: cros: add SUGGESTED APPS indicator to start page (Closed)
Patch Set: include Created 3 years, 5 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
« no previous file with comments | « ui/app_list/BUILD.gn ('k') | ui/app_list/views/indicator_chip_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 "base/strings/string16.h"
10 #include "ui/views/view.h"
11
12 namespace views {
13 class Label;
14 } // namespace views
15
16 namespace app_list {
17
18 // IndicatorChipView consists of a label and is used on top of app tiles for
19 // indication purpose.
20 class IndicatorChipView : public views::View {
21 public:
22 explicit IndicatorChipView(const base::string16& text);
23 ~IndicatorChipView() override;
24
25 private:
26 // views::View overridden:
27 gfx::Size CalculatePreferredSize() const override;
28 void Layout() override;
29
30 views::View* container_ = nullptr; // Owned by views hierarchy.
31 views::Label* label_ = nullptr; // Owned by views hierarchy.
32
33 DISALLOW_COPY_AND_ASSIGN(IndicatorChipView);
34 };
35
36 } // namespace app_list
37
38 #endif // UI_APP_LIST_VIEWS_INDICATOR_CHIP_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/BUILD.gn ('k') | ui/app_list/views/indicator_chip_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698