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

Unified Diff: ui/views/controls/combobox/combobox.h

Issue 1819443002: MacViews: draw combobox arrow backgrounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix linux build Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/combobox/combobox.h
diff --git a/ui/views/controls/combobox/combobox.h b/ui/views/controls/combobox/combobox.h
index a0f5b48b161409a2b4668a994727a2f54338ed73..64e4baa9be1098971ac89c1c21c07807cb2c46d1 100644
--- a/ui/views/controls/combobox/combobox.h
+++ b/ui/views/controls/combobox/combobox.h
@@ -85,6 +85,10 @@ class VIEWS_EXPORT Combobox : public PrefixDelegate, public ButtonListener {
void SetInvalid(bool invalid);
bool invalid() const { return invalid_; }
+ // Returns the width of the arrow button component of the combobox: the arrow
+ // button itself, and the padding on either side of it.
+ int GetArrowButtonWidth() const;
+
// Overridden from View:
gfx::Size GetPreferredSize() const override;
const char* GetClassName() const override;

Powered by Google App Engine
This is Rietveld 408576698