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

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

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 6 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 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
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
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_
OLDNEW
« no previous file with comments | « ui/views/controls/button/custom_button.cc ('k') | ui/views/controls/combobox/native_combobox_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698