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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 GdkEvent* event, | 94 GdkEvent* event, |
93 NativeTextfieldGtk* textfield); | 95 NativeTextfieldGtk* textfield); |
94 gboolean OnMouseUp(); | 96 gboolean OnMouseUp(); |
95 | 97 |
96 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); | 98 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); |
97 }; | 99 }; |
98 | 100 |
99 } // namespace views | 101 } // namespace views |
100 | 102 |
101 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ | 103 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ |
OLD | NEW |