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_NATIVE_COMBOBOX_VIEWS_H_ | 5 #ifndef UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ |
6 #define UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ | 6 #define UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ |
7 | 7 |
8 #include "ui/views/controls/combobox/native_combobox_wrapper.h" | 8 #include "ui/views/controls/combobox/native_combobox_wrapper.h" |
9 #include "ui/views/controls/menu/menu_delegate.h" | 9 #include "ui/views/controls/menu/menu_delegate.h" |
10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 private: | 67 private: |
68 // Given bounds within our View, this helper routine mirrors the bounds if | 68 // Given bounds within our View, this helper routine mirrors the bounds if |
69 // necessary. | 69 // necessary. |
70 void AdjustBoundsForRTLUI(gfx::Rect* rect) const; | 70 void AdjustBoundsForRTLUI(gfx::Rect* rect) const; |
71 | 71 |
72 // Draw the selected value of the drop down list | 72 // Draw the selected value of the drop down list |
73 void PaintText(gfx::Canvas* canvas); | 73 void PaintText(gfx::Canvas* canvas); |
74 | 74 |
75 // Show the drop down list | 75 // Show the drop down list |
76 void ShowDropDownMenu(); | 76 void ShowDropDownMenu(ui::MenuSourceType source_type); |
77 | 77 |
78 // The parent combobox, the owner of this object. | 78 // The parent combobox, the owner of this object. |
79 Combobox* combobox_; | 79 Combobox* combobox_; |
80 | 80 |
81 // The reference to the border class. The object is owned by View::border_. | 81 // The reference to the border class. The object is owned by View::border_. |
82 FocusableBorder* text_border_; | 82 FocusableBorder* text_border_; |
83 | 83 |
84 // The disclosure arrow next to the currently selected item from the list. | 84 // The disclosure arrow next to the currently selected item from the list. |
85 const gfx::ImageSkia* disclosure_arrow_; | 85 const gfx::ImageSkia* disclosure_arrow_; |
86 | 86 |
(...skipping 10 matching lines...) Expand all Loading... |
97 // The maximum dimensions of the content in the dropdown | 97 // The maximum dimensions of the content in the dropdown |
98 int content_width_; | 98 int content_width_; |
99 int content_height_; | 99 int content_height_; |
100 | 100 |
101 DISALLOW_COPY_AND_ASSIGN(NativeComboboxViews); | 101 DISALLOW_COPY_AND_ASSIGN(NativeComboboxViews); |
102 }; | 102 }; |
103 | 103 |
104 } // namespace views | 104 } // namespace views |
105 | 105 |
106 #endif // UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ | 106 #endif // UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ |
OLD | NEW |