| 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_EXPAND_ARROW_VIEW_H_ |
| 6 #define UI_APP_LIST_VIEWS_EXPAND_ARROW_VIEW_H_ |
| 7 |
| 8 #include "ui/views/controls/button/button.h" |
| 9 #include "ui/views/controls/button/custom_button.h" |
| 10 |
| 11 namespace views { |
| 12 class ImageView; |
| 13 class InkDrop; |
| 14 class InkDropMask; |
| 15 class InkDropRipple; |
| 16 class InkDropHighlight; |
| 17 } // namespace views |
| 18 |
| 19 namespace app_list { |
| 20 |
| 21 class AppListView; |
| 22 class ContentsView; |
| 23 |
| 24 // A tile item for the expand arrow on the start page. |
| 25 class ExpandArrowView : public views::CustomButton, |
| 26 public views::ButtonListener { |
| 27 public: |
| 28 ExpandArrowView(ContentsView* contents_view, AppListView* app_list_view); |
| 29 ~ExpandArrowView() override; |
| 30 |
| 31 // Overridden from views::ButtonListener: |
| 32 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 33 |
| 34 // Overridden from views::View: |
| 35 gfx::Size CalculatePreferredSize() const override; |
| 36 void Layout() override; |
| 37 |
| 38 // Overridden from views::InkDropHost: |
| 39 std::unique_ptr<views::InkDrop> CreateInkDrop() override; |
| 40 std::unique_ptr<views::InkDropMask> CreateInkDropMask() const override; |
| 41 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; |
| 42 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() |
| 43 const override; |
| 44 |
| 45 private: |
| 46 ContentsView* const contents_view_; |
| 47 AppListView* const app_list_view_; // Owned by the views hierarchy. |
| 48 |
| 49 views::ImageView* icon_; |
| 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(ExpandArrowView); |
| 52 }; |
| 53 |
| 54 } // namespace app_list |
| 55 |
| 56 #endif // UI_APP_LIST_VIEWS_EXPAND_ARROW_VIEW_H_ |
| OLD | NEW |