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

Side by Side Diff: views/controls/textfield/native_textfield_gtk.h

Issue 6628037: views: Moves TextfieldController/TextRange into their own headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698