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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/native_textfield_gtk.h
===================================================================
--- views/controls/textfield/native_textfield_gtk.h (revision 17056)
+++ views/controls/textfield/native_textfield_gtk.h (working copy)
@@ -0,0 +1,46 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_
+#define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_
+
+#include "views/controls/native_control_gtk.h"
+#include "views/controls/textfield/native_textfield_wrapper.h"
+
+namespace views {
+
+class NativeTextfieldGtk : public NativeControlGtk,
+ public NativeTextfieldWrapper {
+ public:
+ explicit NativeTextfieldGtk(Textfield* parent);
+ ~NativeTextfieldGtk();
+
+ // Overridden from NativeTextfieldWrapper:
+ virtual std::wstring GetText() const;
+ virtual void UpdateText();
+ virtual void AppendText(const std::wstring& text);
+ virtual std::wstring GetSelectedText() const;
+ virtual void SelectAll();
+ virtual void ClearSelection();
+ virtual void UpdateBorder();
+ virtual void UpdateBackgroundColor();
+ virtual void UpdateReadOnly();
+ virtual void UpdateFont();
+ virtual void UpdateEnabled();
+ virtual void SetHorizontalMargins(int left, int right);
+ virtual void SetFocus();
+ virtual View* GetView();
+ virtual gfx::NativeView GetTestingHandle() const;
+
+ // Overridden from NativeControlGtk:
+ virtual void CreateNativeControl();
+ virtual void NativeControlCreated(GtkWidget* widget);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk);
+};
+
+} // namespace views
+
+#endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_
« 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