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

Unified Diff: views/controls/textfield/native_textfield_gtk.cc

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/textfield/native_textfield_gtk.h ('k') | views/controls/textfield/native_textfield_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/native_textfield_gtk.cc
===================================================================
--- views/controls/textfield/native_textfield_gtk.cc (revision 17056)
+++ views/controls/textfield/native_textfield_gtk.cc (working copy)
@@ -0,0 +1,83 @@
+// 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.
+
+#include "views/controls/textfield/native_textfield_gtk.h"
+
+namespace views {
+
+////////////////////////////////////////////////////////////////////////////////
+// NativeTextfieldGtk, public:
+
+NativeTextfieldGtk::NativeTextfieldGtk(Textfield* textfield)
+ : NativeControlGtk() {
+}
+
+NativeTextfieldGtk::~NativeTextfieldGtk() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+// NativeTextfieldGtk, NativeTextfieldWrapper implementation:
+
+std::wstring NativeTextfieldGtk::GetText() const {
+ return std::wstring();
+}
+
+void NativeTextfieldGtk::UpdateText() {
+}
+
+void NativeTextfieldGtk::AppendText(const std::wstring& text) {
+}
+
+std::wstring NativeTextfieldGtk::GetSelectedText() const {
+ return std::wstring();
+}
+
+void NativeTextfieldGtk::SelectAll() {
+}
+
+void NativeTextfieldGtk::ClearSelection() {
+}
+
+void NativeTextfieldGtk::UpdateBorder() {
+}
+
+void NativeTextfieldGtk::UpdateBackgroundColor() {
+}
+
+void NativeTextfieldGtk::UpdateReadOnly() {
+}
+
+void NativeTextfieldGtk::UpdateFont() {
+}
+
+void NativeTextfieldGtk::UpdateEnabled() {
+}
+
+void NativeTextfieldGtk::SetHorizontalMargins(int left, int right) {
+}
+
+void NativeTextfieldGtk::SetFocus() {
+}
+
+View* NativeTextfieldGtk::GetView() {
+ return this;
+}
+
+gfx::NativeView NativeTextfieldGtk::GetTestingHandle() const {
+ return native_view();
+}
+
+////////////////////////////////////////////////////////////////////////////////
+// NativeTextfieldGtk, NativeControlGtk overrides:
+
+void NativeTextfieldGtk::CreateNativeControl() {
+ // TODO(port): create gtk text field
+}
+
+void NativeTextfieldGtk::NativeControlCreated(GtkWidget* widget) {
+ NativeControlGtk::NativeControlCreated(widget);
+ // TODO(port): post-creation init
+}
+
+} // namespace views
« no previous file with comments | « views/controls/textfield/native_textfield_gtk.h ('k') | views/controls/textfield/native_textfield_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698