| OLD | NEW | 
|---|
| (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 #include "views/controls/textfield/native_textfield_gtk.h" | 
|  | 6 | 
|  | 7 namespace views { | 
|  | 8 | 
|  | 9 //////////////////////////////////////////////////////////////////////////////// | 
|  | 10 // NativeTextfieldGtk, public: | 
|  | 11 | 
|  | 12 NativeTextfieldGtk::NativeTextfieldGtk(Textfield* textfield) | 
|  | 13     : NativeControlGtk() { | 
|  | 14 } | 
|  | 15 | 
|  | 16 NativeTextfieldGtk::~NativeTextfieldGtk() { | 
|  | 17 } | 
|  | 18 | 
|  | 19 //////////////////////////////////////////////////////////////////////////////// | 
|  | 20 // NativeTextfieldGtk, NativeTextfieldWrapper implementation: | 
|  | 21 | 
|  | 22 std::wstring NativeTextfieldGtk::GetText() const { | 
|  | 23   return std::wstring(); | 
|  | 24 } | 
|  | 25 | 
|  | 26 void NativeTextfieldGtk::UpdateText() { | 
|  | 27 } | 
|  | 28 | 
|  | 29 void NativeTextfieldGtk::AppendText(const std::wstring& text) { | 
|  | 30 } | 
|  | 31 | 
|  | 32 std::wstring NativeTextfieldGtk::GetSelectedText() const { | 
|  | 33   return std::wstring(); | 
|  | 34 } | 
|  | 35 | 
|  | 36 void NativeTextfieldGtk::SelectAll() { | 
|  | 37 } | 
|  | 38 | 
|  | 39 void NativeTextfieldGtk::ClearSelection() { | 
|  | 40 } | 
|  | 41 | 
|  | 42 void NativeTextfieldGtk::UpdateBorder() { | 
|  | 43 } | 
|  | 44 | 
|  | 45 void NativeTextfieldGtk::UpdateBackgroundColor() { | 
|  | 46 } | 
|  | 47 | 
|  | 48 void NativeTextfieldGtk::UpdateReadOnly() { | 
|  | 49 } | 
|  | 50 | 
|  | 51 void NativeTextfieldGtk::UpdateFont() { | 
|  | 52 } | 
|  | 53 | 
|  | 54 void NativeTextfieldGtk::UpdateEnabled() { | 
|  | 55 } | 
|  | 56 | 
|  | 57 void NativeTextfieldGtk::SetHorizontalMargins(int left, int right) { | 
|  | 58 } | 
|  | 59 | 
|  | 60 void NativeTextfieldGtk::SetFocus() { | 
|  | 61 } | 
|  | 62 | 
|  | 63 View* NativeTextfieldGtk::GetView() { | 
|  | 64   return this; | 
|  | 65 } | 
|  | 66 | 
|  | 67 gfx::NativeView NativeTextfieldGtk::GetTestingHandle() const { | 
|  | 68   return native_view(); | 
|  | 69 } | 
|  | 70 | 
|  | 71 //////////////////////////////////////////////////////////////////////////////// | 
|  | 72 // NativeTextfieldGtk, NativeControlGtk overrides: | 
|  | 73 | 
|  | 74 void NativeTextfieldGtk::CreateNativeControl() { | 
|  | 75   // TODO(port): create gtk text field | 
|  | 76 } | 
|  | 77 | 
|  | 78 void NativeTextfieldGtk::NativeControlCreated(GtkWidget* widget) { | 
|  | 79   NativeControlGtk::NativeControlCreated(widget); | 
|  | 80   // TODO(port): post-creation init | 
|  | 81 } | 
|  | 82 | 
|  | 83 }  // namespace views | 
| OLD | NEW | 
|---|