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

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: address comments 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
« no previous file with comments | « chrome/browser/ui/views/url_picker.h ('k') | views/controls/textfield/native_textfield_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/url_picker.h ('k') | views/controls/textfield/native_textfield_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698