| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ | 5 #ifndef UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
| 6 #define UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ | 6 #define UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 // Given bounds within our View, this helper mirrors the bounds if necessary. | 117 // Given bounds within our View, this helper mirrors the bounds if necessary. |
| 118 void AdjustBoundsForRTLUI(gfx::Rect* rect) const; | 118 void AdjustBoundsForRTLUI(gfx::Rect* rect) const; |
| 119 | 119 |
| 120 // Draws the selected value of the drop down list | 120 // Draws the selected value of the drop down list |
| 121 void PaintText(gfx::Canvas* canvas); | 121 void PaintText(gfx::Canvas* canvas); |
| 122 | 122 |
| 123 // Draws the button images. | 123 // Draws the button images. |
| 124 void PaintButtons(gfx::Canvas* canvas); | 124 void PaintButtons(gfx::Canvas* canvas); |
| 125 | 125 |
| 126 // Draws the arrow background, if used by this platform style. |
| 127 void PaintArrowBackground(gfx::Canvas* canvas); |
| 128 |
| 126 // Show the drop down list | 129 // Show the drop down list |
| 127 void ShowDropDownMenu(ui::MenuSourceType source_type); | 130 void ShowDropDownMenu(ui::MenuSourceType source_type); |
| 128 | 131 |
| 129 // Called when the selection is changed by the user. | 132 // Called when the selection is changed by the user. |
| 130 void OnPerformAction(); | 133 void OnPerformAction(); |
| 131 | 134 |
| 132 int GetDisclosureArrowLeftPadding() const; | 135 int GetDisclosureArrowLeftPadding() const; |
| 133 int GetDisclosureArrowRightPadding() const; | 136 int GetDisclosureArrowRightPadding() const; |
| 134 | 137 |
| 135 // Returns the size of the disclosure arrow. | 138 // Returns the size of the disclosure arrow. |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 204 |
| 202 // Used for making calbacks. | 205 // Used for making calbacks. |
| 203 base::WeakPtrFactory<Combobox> weak_ptr_factory_; | 206 base::WeakPtrFactory<Combobox> weak_ptr_factory_; |
| 204 | 207 |
| 205 DISALLOW_COPY_AND_ASSIGN(Combobox); | 208 DISALLOW_COPY_AND_ASSIGN(Combobox); |
| 206 }; | 209 }; |
| 207 | 210 |
| 208 } // namespace views | 211 } // namespace views |
| 209 | 212 |
| 210 #endif // UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ | 213 #endif // UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
| OLD | NEW |