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

Side by Side Diff: ui/views/controls/textfield/gtk_views_entry.h

Issue 9728002: Removing deprecated GTK-Views code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_GTK_VIEWS_ENTRY_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_GTK_VIEWS_ENTRY_H_
7 #pragma once
8
9 #include <gdk/gdk.h>
10 #include <gtk/gtkentry.h>
11
12 namespace views {
13 class NativeTextfieldGtk;
14 }
15
16 // GtkViewsEntry is a subclass of GtkEntry that can draw text when the text in
17 // the entry is empty. For example, this could show the text 'password' in a
18 // password field when the text is empty. GtkViewsEntry is used internally by
19 // NativeTextfieldGtk.
20
21 G_BEGIN_DECLS
22
23 #define GTK_TYPE_VIEWS_ENTRY (gtk_views_entry_get_type ())
24 #define GTK_VIEWS_ENTRY(obj) \
25 (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_VIEWS_ENTRY, GtkViewsEntry))
26 #define GTK_VIEWS_ENTRY_CLASS(klass) \
27 (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_VIEWS_ENTRY, GtkViewsEntryClass))
28 #define GTK_IS_VIEWS_ENTRY(obj) \
29 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VIEWS_ENTRY))
30 #define GTK_IS_VIEWS_ENTRY_CLASS(klass) \
31 (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VIEWS_ENTRY))
32 #define GTK_VIEWS_ENTRY_GET_CLASS(obj) \
33 (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VIEWS_ENTRY, GtkViewsEntry))
34
35 typedef struct _GtkViewsEntry GtkViewsEntry;
36 typedef struct _GtkViewsEntryClass GtkViewsEntryClass;
37
38 struct _GtkViewsEntry {
39 GtkEntry entry;
40 views::NativeTextfieldGtk* host;
41 };
42
43 struct _GtkViewsEntryClass {
44 GtkEntryClass parent_class;
45 };
46
47 GtkWidget* gtk_views_entry_new(views::NativeTextfieldGtk* host);
48
49 GType gtk_views_entry_get_type();
50
51 G_END_DECLS
52
53 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_GTK_VIEWS_ENTRY_H_
OLDNEW
« no previous file with comments | « ui/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc ('k') | ui/views/controls/textfield/gtk_views_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698