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

Side by Side Diff: ui/views/controls/textfield/gtk_views_textview.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_TEXTVIEW_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_GTK_VIEWS_TEXTVIEW_H_
7 #pragma once
8
9 #include <gdk/gdk.h>
10 #include <gtk/gtktextview.h>
11
12 namespace views {
13 class NativeTextfieldGtk;
14 }
15
16 // Similar to GtkViewsEntry, GtkViewsTextView is a subclass of GtkTextView
17 // with a border and ability to show a custom info when text view has no text.
18
19 G_BEGIN_DECLS
20
21 #define GTK_TYPE_VIEWS_TEXTVIEW (gtk_views_textview_get_type())
22 #define GTK_VIEWS_TEXTVIEW(obj) \
23 (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_VIEWS_TEXTVIEW, \
24 GtkViewsTextView))
25 #define GTK_VIEWS_TEXTVIEW_CLASS(klass) \
26 (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_VIEWS_TEXTVIEW, \
27 GtkViewsTextViewClass))
28 #define GTK_IS_VIEWS_TEXTVIEW(obj) \
29 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VIEWS_TEXTVIEW))
30 #define GTK_IS_VIEWS_TEXTVIEW_CLASS(klass) \
31 (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VIEWS_TEXTVIEW))
32 #define GTK_VIEWS_TEXTVIEW_GET_CLASS(obj) \
33 (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VIEWS_TEXTVIEW, \
34 GtkViewsTextView))
35
36 typedef struct _GtkViewsTextView GtkViewsTextView;
37 typedef struct _GtkViewsTextViewClass GtkViewsTextViewClass;
38
39 struct _GtkViewsTextView {
40 GtkTextView text_view;
41 views::NativeTextfieldGtk* host;
42 };
43
44 struct _GtkViewsTextViewClass {
45 GtkTextViewClass parent_class;
46 };
47
48 GtkWidget* gtk_views_textview_new(views::NativeTextfieldGtk* host);
49
50 GType gtk_views_textview_get_type();
51
52 G_END_DECLS
53
54 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_GTK_VIEWS_TEXTVIEW_H_
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/gtk_views_entry.cc ('k') | ui/views/controls/textfield/gtk_views_textview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698