| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 VIEWS_CONTROLS_BUTTON_BUTTON_H_ | 5 #ifndef VIEWS_CONTROLS_BUTTON_BUTTON_H_ |
| 6 #define VIEWS_CONTROLS_BUTTON_BUTTON_H_ | 6 #define VIEWS_CONTROLS_BUTTON_BUTTON_H_ |
| 7 | 7 |
| 8 #include "views/view.h" | 8 #include "views/view.h" |
| 9 | 9 |
| 10 namespace views { | 10 namespace views { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 // The button's listener. Notified when clicked. | 51 // The button's listener. Notified when clicked. |
| 52 ButtonListener* listener_; | 52 ButtonListener* listener_; |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 // The text shown in a tooltip. | 55 // The text shown in a tooltip. |
| 56 std::wstring tooltip_text_; | 56 std::wstring tooltip_text_; |
| 57 | 57 |
| 58 // Accessibility data. | 58 // Accessibility data. |
| 59 std::wstring accessible_shortcut_; | 59 std::wstring accessible_shortcut_; |
| 60 std::wstring accessible_name_; | |
| 61 | 60 |
| 62 // The id tag associated with this button. Used to disambiguate buttons in | 61 // The id tag associated with this button. Used to disambiguate buttons in |
| 63 // the ButtonListener implementation. | 62 // the ButtonListener implementation. |
| 64 int tag_; | 63 int tag_; |
| 65 | 64 |
| 66 // Event flags present when the button was clicked. | 65 // Event flags present when the button was clicked. |
| 67 int mouse_event_flags_; | 66 int mouse_event_flags_; |
| 68 | 67 |
| 69 DISALLOW_COPY_AND_ASSIGN(Button); | 68 DISALLOW_COPY_AND_ASSIGN(Button); |
| 70 }; | 69 }; |
| 71 | 70 |
| 72 } // namespace views | 71 } // namespace views |
| 73 | 72 |
| 74 #endif // VIEWS_CONTROLS_BUTTON_BUTTON_H_ | 73 #endif // VIEWS_CONTROLS_BUTTON_BUTTON_H_ |
| OLD | NEW |