Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(782)

Side by Side Diff: ui/views/controls/combobox/native_combobox_views.h

Issue 10437006: Converts ui/views/controls, ui/views/examples, ui/base/models to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include "ui/views/controls/combobox/native_combobox_wrapper.h" 9 #include "ui/views/controls/combobox/native_combobox_wrapper.h"
10 #include "ui/views/controls/menu/menu_delegate.h" 10 #include "ui/views/controls/menu/menu_delegate.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Show the drop down list 72 // Show the drop down list
73 void ShowDropDownMenu(); 73 void ShowDropDownMenu();
74 74
75 // The parent combobox, the owner of this object. 75 // The parent combobox, the owner of this object.
76 Combobox* combobox_; 76 Combobox* combobox_;
77 77
78 // The reference to the border class. The object is owned by View::border_. 78 // The reference to the border class. The object is owned by View::border_.
79 FocusableBorder* text_border_; 79 FocusableBorder* text_border_;
80 80
81 // The disclosure arrow next to the currently selected item from the list. 81 // The disclosure arrow next to the currently selected item from the list.
82 const SkBitmap* disclosure_arrow_; 82 const gfx::ImageSkia* disclosure_arrow_;
83 83
84 // Responsible for showing the context menu. 84 // Responsible for showing the context menu.
85 scoped_ptr<MenuRunner> dropdown_list_menu_runner_; 85 scoped_ptr<MenuRunner> dropdown_list_menu_runner_;
86 86
87 // Is the drop down list showing 87 // Is the drop down list showing
88 bool dropdown_open_; 88 bool dropdown_open_;
89 89
90 // The selected index in the model. The default value is -1, which means no 90 // The selected index in the model. The default value is -1, which means no
91 // selection. 91 // selection.
92 int selected_index_; 92 int selected_index_;
93 93
94 // The maximum dimensions of the content in the dropdown 94 // The maximum dimensions of the content in the dropdown
95 int content_width_; 95 int content_width_;
96 int content_height_; 96 int content_height_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(NativeComboboxViews); 98 DISALLOW_COPY_AND_ASSIGN(NativeComboboxViews);
99 }; 99 };
100 100
101 } // namespace views 101 } // namespace views
102 102
103 #endif // UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ 103 #endif // UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698