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

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

Issue 1155008: Adds the ability to display text in a textfield when the text is (Closed)
Patch Set: Updates Created 10 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
« no previous file with comments | « views/controls/textfield/gtk_views_entry.cc ('k') | views/controls/textfield/native_textfield_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/native_textfield_gtk.h
diff --git a/views/controls/textfield/native_textfield_gtk.h b/views/controls/textfield/native_textfield_gtk.h
index 76225211085efc7dcf41eca8a4b8c009aba4f983..12d07fd6e6246a892a8751cd189650f8aa85a009 100644
--- a/views/controls/textfield/native_textfield_gtk.h
+++ b/views/controls/textfield/native_textfield_gtk.h
@@ -7,6 +7,7 @@
#include <gtk/gtk.h>
+#include "app/gtk_signal.h"
#include "base/string16.h"
#include "views/controls/native_control_gtk.h"
#include "views/controls/textfield/native_textfield_wrapper.h"
@@ -19,6 +20,12 @@ class NativeTextfieldGtk : public NativeControlGtk,
explicit NativeTextfieldGtk(Textfield* parent);
~NativeTextfieldGtk();
+ // Returns the textfield this NativeTextfieldGtk wraps.
+ Textfield* textfield() const { return textfield_; }
+
+ // Returns the inner border of the entry.
+ static gfx::Insets GetEntryInnerBorder(GtkEntry* entry);
+
// Overridden from NativeTextfieldWrapper:
virtual string16 GetText() const;
virtual void UpdateText();
« no previous file with comments | « views/controls/textfield/gtk_views_entry.cc ('k') | views/controls/textfield/native_textfield_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698