| OLD | NEW |
| 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_COMMON_SYSTEM_TRAY_ACTIONABLE_VIEW_H_ | 5 #ifndef ASH_SYSTEM_TRAY_ACTIONABLE_VIEW_H_ |
| 6 #define ASH_COMMON_SYSTEM_TRAY_ACTIONABLE_VIEW_H_ | 6 #define ASH_SYSTEM_TRAY_ACTIONABLE_VIEW_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/common/system/tray/tray_popup_ink_drop_style.h" | 9 #include "ash/system/tray/tray_popup_ink_drop_style.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
| 12 #include "ui/views/controls/button/custom_button.h" | 12 #include "ui/views/controls/button/custom_button.h" |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 class SystemTrayItem; | 15 class SystemTrayItem; |
| 16 | 16 |
| 17 // A focusable view that performs an action when user clicks on it, or presses | 17 // A focusable view that performs an action when user clicks on it, or presses |
| 18 // enter or space when focused. Note that the action is triggered on mouse-up, | 18 // enter or space when focused. Note that the action is triggered on mouse-up, |
| 19 // instead of on mouse-down. So if user presses the mouse on the view, then | 19 // instead of on mouse-down. So if user presses the mouse on the view, then |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 bool PerformAction(const ui::Event& event) override; | 105 bool PerformAction(const ui::Event& event) override; |
| 106 | 106 |
| 107 private: | 107 private: |
| 108 views::ButtonListener* listener_; | 108 views::ButtonListener* listener_; |
| 109 | 109 |
| 110 DISALLOW_COPY_AND_ASSIGN(ButtonListenerActionableView); | 110 DISALLOW_COPY_AND_ASSIGN(ButtonListenerActionableView); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 } // namespace ash | 113 } // namespace ash |
| 114 | 114 |
| 115 #endif // ASH_COMMON_SYSTEM_TRAY_ACTIONABLE_VIEW_H_ | 115 #endif // ASH_SYSTEM_TRAY_ACTIONABLE_VIEW_H_ |
| OLD | NEW |