| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_BUTTON_H_ | 5 #ifndef CHROME_VIEWS_BUTTON_H_ |
| 6 #define CHROME_VIEWS_BUTTON_H_ | 6 #define CHROME_VIEWS_BUTTON_H_ |
| 7 | 7 |
| 8 #include "chrome/views/base_button.h" | 8 #include "chrome/views/base_button.h" |
| 9 #include "skia/include/SkBitmap.h" | 9 #include "skia/include/SkBitmap.h" |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 enum VerticalAlignment {ALIGN_TOP = 0, | 37 enum VerticalAlignment {ALIGN_TOP = 0, |
| 38 ALIGN_MIDDLE, | 38 ALIGN_MIDDLE, |
| 39 ALIGN_BOTTOM }; | 39 ALIGN_BOTTOM }; |
| 40 | 40 |
| 41 void SetImageAlignment(HorizontalAlignment h_align, | 41 void SetImageAlignment(HorizontalAlignment h_align, |
| 42 VerticalAlignment v_align); | 42 VerticalAlignment v_align); |
| 43 | 43 |
| 44 // | 44 // |
| 45 // Computes the minimum size given the current theme and graphics | 45 // Computes the minimum size given the current theme and graphics |
| 46 void GetPreferredSize(CSize *result); | 46 gfx::Size GetPreferredSize(); |
| 47 | 47 |
| 48 // Returns the MSAA default action of the current view. The string returned | 48 // Returns the MSAA default action of the current view. The string returned |
| 49 // describes the default action that will occur when executing | 49 // describes the default action that will occur when executing |
| 50 // IAccessible::DoDefaultAction. | 50 // IAccessible::DoDefaultAction. |
| 51 bool GetAccessibleDefaultAction(std::wstring* action); | 51 bool GetAccessibleDefaultAction(std::wstring* action); |
| 52 | 52 |
| 53 // Returns the MSAA role of the current view. The role is what assistive | 53 // Returns the MSAA role of the current view. The role is what assistive |
| 54 // technologies (ATs) use to determine what behavior to expect from a given | 54 // technologies (ATs) use to determine what behavior to expect from a given |
| 55 // control. | 55 // control. |
| 56 bool GetAccessibleRole(VARIANT* role); | 56 bool GetAccessibleRole(VARIANT* role); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // this one is shown when toggled. | 125 // this one is shown when toggled. |
| 126 std::wstring toggled_tooltip_text_; | 126 std::wstring toggled_tooltip_text_; |
| 127 | 127 |
| 128 DISALLOW_EVIL_CONSTRUCTORS(ToggleButton); | 128 DISALLOW_EVIL_CONSTRUCTORS(ToggleButton); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 } // namespace | 131 } // namespace |
| 132 | 132 |
| 133 #endif // CHROME_VIEWS_BUTTON_H_ | 133 #endif // CHROME_VIEWS_BUTTON_H_ |
| 134 | 134 |
| OLD | NEW |