OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 ASH_COMMON_SYSTEM_TRAY_SYSTEM_MENU_BUTTON_H_ | |
6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_MENU_BUTTON_H_ | |
7 | |
8 #include "ash/resources/vector_icons/vector_icons.h" | |
James Cook
2016/09/23 18:32:16
#include macros.h
tdanderson
2016/09/23 19:53:12
Done.
| |
9 #include "ui/views/controls/button/button.h" | |
10 #include "ui/views/controls/button/image_button.h" | |
11 | |
12 namespace views { | |
13 class InkDropHighlight; | |
14 class InkDropRipple; | |
15 } | |
16 | |
17 namespace ash { | |
18 | |
19 class SystemMenuButton : public views::ImageButton { | |
James Cook
2016/09/23 18:32:17
nit: Class docs. What does this do and why would y
tdanderson
2016/09/23 19:53:12
Slipped my mind, sorry. Done.
| |
20 public: | |
21 SystemMenuButton(views::ButtonListener* listener, | |
James Cook
2016/09/23 18:32:16
nit: Document parameters. For example, what sort o
tdanderson
2016/09/23 19:53:12
Done.
| |
22 const gfx::VectorIcon& icon, | |
23 int accessible_name_id); | |
24 ~SystemMenuButton() override; | |
25 | |
26 // views::ImageButton: | |
27 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; | |
28 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() | |
29 const override; | |
30 bool ShouldShowInkDropForFocus() const override; | |
31 | |
32 private: | |
33 DISALLOW_COPY_AND_ASSIGN(SystemMenuButton); | |
34 }; | |
35 | |
36 } // namespace ash | |
37 | |
38 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_MENU_BUTTON_H_ | |
OLD | NEW |