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

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

Issue 516943003: Add textfield internal padding from FocusableBorder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Peter's request... Created 6 years, 3 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/textfield/textfield.h
diff --git a/ui/views/controls/textfield/textfield.h b/ui/views/controls/textfield/textfield.h
index e06a3326c81c3241b6d12072d66752b72fa5981b..4d7f6040a091d48c0c49858c8549fcd46e5a801b 100644
--- a/ui/views/controls/textfield/textfield.h
+++ b/ui/views/controls/textfield/textfield.h
@@ -45,6 +45,9 @@ class VIEWS_EXPORT Textfield : public View,
// The textfield's class name.
static const char kViewClassName[];
+ // The preferred size of the padding to be used around textfield text.
+ static const int kTextPadding;
Peter Kasting 2014/09/09 01:33:29 It looks like search_box_view.cc and combobox.cc a
msw 2014/09/09 17:01:06 Not in a clearly good way. (1) search_box_view.cc
Peter Kasting 2014/09/09 18:27:17 It'd probably be OK to do (a) and claim that Textf
msw 2014/09/09 19:57:20 Then I'll leave this as-is. I see lots of addition
+
// Returns the text cursor blink time in milliseconds, or 0 for no blinking.
static size_t GetCaretBlinkMs();
@@ -202,6 +205,7 @@ class VIEWS_EXPORT Textfield : public View,
bool HasTextBeingDragged();
// View overrides:
+ virtual gfx::Insets GetInsets() const OVERRIDE;
virtual int GetBaseline() const OVERRIDE;
virtual gfx::Size GetPreferredSize() const OVERRIDE;
virtual const char* GetClassName() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698