OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ | 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ |
6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ | 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "views/controls/native_control_gtk.h" | 12 #include "views/controls/native_control_gtk.h" |
13 #include "views/controls/textfield/native_textfield_wrapper.h" | 13 #include "views/controls/textfield/native_textfield_wrapper.h" |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 | 16 |
| 17 class TextRange; |
| 18 |
17 class NativeTextfieldGtk : public NativeControlGtk, | 19 class NativeTextfieldGtk : public NativeControlGtk, |
18 public NativeTextfieldWrapper { | 20 public NativeTextfieldWrapper { |
19 public: | 21 public: |
20 explicit NativeTextfieldGtk(Textfield* parent); | 22 explicit NativeTextfieldGtk(Textfield* parent); |
21 ~NativeTextfieldGtk(); | 23 ~NativeTextfieldGtk(); |
22 | 24 |
23 // Returns the textfield this NativeTextfieldGtk wraps. | 25 // Returns the textfield this NativeTextfieldGtk wraps. |
24 Textfield* textfield() const { return textfield_; } | 26 Textfield* textfield() const { return textfield_; } |
25 | 27 |
26 // Returns the inner border of the entry. | 28 // Returns the inner border of the entry. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 GtkWidget* entry, | 82 GtkWidget* entry, |
81 NativeTextfieldGtk* textfield); | 83 NativeTextfieldGtk* textfield); |
82 gboolean OnChanged(); | 84 gboolean OnChanged(); |
83 | 85 |
84 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); | 86 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); |
85 }; | 87 }; |
86 | 88 |
87 } // namespace views | 89 } // namespace views |
88 | 90 |
89 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ | 91 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ |
OLD | NEW |