| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ | 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ |
| 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ | 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| 11 #include "base/string16.h" | 11 #include "base/string16.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 41 virtual void UpdateFont(); | 41 virtual void UpdateFont(); |
| 42 virtual void UpdateIsPassword(); | 42 virtual void UpdateIsPassword(); |
| 43 virtual void UpdateEnabled(); | 43 virtual void UpdateEnabled(); |
| 44 virtual gfx::Insets CalculateInsets(); | 44 virtual gfx::Insets CalculateInsets(); |
| 45 virtual void UpdateHorizontalMargins(); | 45 virtual void UpdateHorizontalMargins(); |
| 46 virtual void UpdateVerticalMargins(); | 46 virtual void UpdateVerticalMargins(); |
| 47 virtual bool SetFocus(); | 47 virtual bool SetFocus(); |
| 48 virtual View* GetView(); | 48 virtual View* GetView(); |
| 49 virtual gfx::NativeView GetTestingHandle() const; | 49 virtual gfx::NativeView GetTestingHandle() const; |
| 50 virtual bool IsIMEComposing() const; | 50 virtual bool IsIMEComposing() const; |
| 51 virtual void GetSelectedRange(TextRange* range) const; |
| 52 virtual void SelectRange(const TextRange& range); |
| 53 virtual size_t GetCursorPosition() const; |
| 51 virtual bool HandleKeyPressed(const views::KeyEvent& e); | 54 virtual bool HandleKeyPressed(const views::KeyEvent& e); |
| 52 virtual bool HandleKeyReleased(const views::KeyEvent& e); | 55 virtual bool HandleKeyReleased(const views::KeyEvent& e); |
| 53 virtual void HandleWillGainFocus(); | 56 virtual void HandleWillGainFocus(); |
| 54 virtual void HandleDidGainFocus(); | 57 virtual void HandleDidGainFocus(); |
| 55 virtual void HandleWillLoseFocus(); | 58 virtual void HandleWillLoseFocus(); |
| 56 | 59 |
| 57 // Overridden from NativeControlGtk: | 60 // Overridden from NativeControlGtk: |
| 58 virtual void CreateNativeControl(); | 61 virtual void CreateNativeControl(); |
| 59 virtual void NativeControlCreated(GtkWidget* widget); | 62 virtual void NativeControlCreated(GtkWidget* widget); |
| 60 | 63 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 78 GtkWidget* entry, | 81 GtkWidget* entry, |
| 79 NativeTextfieldGtk* textfield); | 82 NativeTextfieldGtk* textfield); |
| 80 gboolean OnChanged(); | 83 gboolean OnChanged(); |
| 81 | 84 |
| 82 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); | 85 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); |
| 83 }; | 86 }; |
| 84 | 87 |
| 85 } // namespace views | 88 } // namespace views |
| 86 | 89 |
| 87 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ | 90 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ |
| OLD | NEW |