OLD | NEW |
1 // Copyright (c) 2011 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 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 virtual size_t GetCursorPosition() const OVERRIDE; | 54 virtual size_t GetCursorPosition() const OVERRIDE; |
55 virtual bool HandleKeyPressed(const views::KeyEvent& e) OVERRIDE; | 55 virtual bool HandleKeyPressed(const views::KeyEvent& e) OVERRIDE; |
56 virtual bool HandleKeyReleased(const views::KeyEvent& e) OVERRIDE; | 56 virtual bool HandleKeyReleased(const views::KeyEvent& e) OVERRIDE; |
57 virtual void HandleFocus() OVERRIDE; | 57 virtual void HandleFocus() OVERRIDE; |
58 virtual void HandleBlur() OVERRIDE; | 58 virtual void HandleBlur() OVERRIDE; |
59 virtual TextInputClient* GetTextInputClient() OVERRIDE; | 59 virtual TextInputClient* GetTextInputClient() OVERRIDE; |
60 virtual TextStyle* CreateTextStyle() OVERRIDE; | 60 virtual TextStyle* CreateTextStyle() OVERRIDE; |
61 virtual void ApplyTextStyle(const TextStyle* style, | 61 virtual void ApplyTextStyle(const TextStyle* style, |
62 const ui::Range& range) OVERRIDE; | 62 const ui::Range& range) OVERRIDE; |
63 virtual void ClearAllTextStyles() OVERRIDE; | 63 virtual void ClearAllTextStyles() OVERRIDE; |
| 64 virtual void ClearEditHistory() OVERRIDE; |
64 | 65 |
65 // Overridden from NativeControlGtk: | 66 // Overridden from NativeControlGtk: |
66 virtual void CreateNativeControl() OVERRIDE; | 67 virtual void CreateNativeControl() OVERRIDE; |
67 virtual void NativeControlCreated(GtkWidget* widget) OVERRIDE; | 68 virtual void NativeControlCreated(GtkWidget* widget) OVERRIDE; |
68 | 69 |
69 // Returns true if the textfield is for password. | 70 // Returns true if the textfield is for password. |
70 bool IsPassword(); | 71 bool IsPassword(); |
71 | 72 |
72 private: | 73 private: |
73 // Gtk signal callbacks. | 74 // Gtk signal callbacks. |
(...skipping 17 matching lines...) Expand all Loading... |
91 // The actual paste clipboard action might be performed later if the | 92 // The actual paste clipboard action might be performed later if the |
92 // clipboard is not empty. | 93 // clipboard is not empty. |
93 bool paste_clipboard_requested_; | 94 bool paste_clipboard_requested_; |
94 | 95 |
95 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); | 96 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); |
96 }; | 97 }; |
97 | 98 |
98 } // namespace views | 99 } // namespace views |
99 | 100 |
100 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ | 101 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ |
OLD | NEW |