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

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

Issue 115886: Stub out textfield on GTK (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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) 2009 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 VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_
6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_
7
8 #include "views/controls/native_control_gtk.h"
9 #include "views/controls/textfield/native_textfield_wrapper.h"
10
11 namespace views {
12
13 class NativeTextfieldGtk : public NativeControlGtk,
14 public NativeTextfieldWrapper {
15 public:
16 explicit NativeTextfieldGtk(Textfield* parent);
17 ~NativeTextfieldGtk();
18
19 // Overridden from NativeTextfieldWrapper:
20 virtual std::wstring GetText() const;
21 virtual void UpdateText();
22 virtual void AppendText(const std::wstring& text);
23 virtual std::wstring GetSelectedText() const;
24 virtual void SelectAll();
25 virtual void ClearSelection();
26 virtual void UpdateBorder();
27 virtual void UpdateBackgroundColor();
28 virtual void UpdateReadOnly();
29 virtual void UpdateFont();
30 virtual void UpdateEnabled();
31 virtual void SetHorizontalMargins(int left, int right);
32 virtual void SetFocus();
33 virtual View* GetView();
34 virtual gfx::NativeView GetTestingHandle() const;
35
36 // Overridden from NativeControlGtk:
37 virtual void CreateNativeControl();
38 virtual void NativeControlCreated(GtkWidget* widget);
39
40 private:
41 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk);
42 };
43
44 } // namespace views
45
46 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_
OLDNEW
« no previous file with comments | « views/controls/native_view_host_gtk.cc ('k') | views/controls/textfield/native_textfield_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698