| 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_SYSTEM_TRAY_ACTIONABLE_VIEW_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_ACTIONABLE_VIEW_H_ |
| 6 #define ASH_SYSTEM_TRAY_ACTIONABLE_VIEW_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_ACTIONABLE_VIEW_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "base/macros.h" | 9 #include "base/macros.h" |
| 11 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
| 12 | 11 |
| 13 namespace ash { | 12 namespace ash { |
| 14 | 13 |
| 15 // A focusable view that performs an action when user clicks on it, or presses | 14 // A focusable view that performs an action when user clicks on it, or presses |
| 16 // enter or space when focused. Note that the action is triggered on mouse-up, | 15 // enter or space when focused. Note that the action is triggered on mouse-up, |
| 17 // instead of on mouse-down. So if user presses the mouse on the view, then | 16 // instead of on mouse-down. So if user presses the mouse on the view, then |
| 18 // moves the mouse out of the view and then releases, then the action will not | 17 // moves the mouse out of the view and then releases, then the action will not |
| 19 // be performed. | 18 // be performed. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 55 |
| 57 private: | 56 private: |
| 58 base::string16 accessible_name_; | 57 base::string16 accessible_name_; |
| 59 bool has_capture_; | 58 bool has_capture_; |
| 60 | 59 |
| 61 DISALLOW_COPY_AND_ASSIGN(ActionableView); | 60 DISALLOW_COPY_AND_ASSIGN(ActionableView); |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 } // namespace ash | 63 } // namespace ash |
| 65 | 64 |
| 66 #endif // ASH_SYSTEM_TRAY_ACTIONABLE_VIEW_H_ | 65 #endif // ASH_COMMON_SYSTEM_TRAY_ACTIONABLE_VIEW_H_ |
| OLD | NEW |