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 #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_ |
OLD | NEW |