| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 virtual View* GetView() OVERRIDE; | 48 virtual View* GetView() OVERRIDE; |
| 49 virtual gfx::NativeView GetTestingHandle() const OVERRIDE; | 49 virtual gfx::NativeView GetTestingHandle() const OVERRIDE; |
| 50 virtual bool IsIMEComposing() const OVERRIDE; | 50 virtual bool IsIMEComposing() const OVERRIDE; |
| 51 virtual void GetSelectedRange(ui::Range* range) const OVERRIDE; | 51 virtual void GetSelectedRange(ui::Range* range) const OVERRIDE; |
| 52 virtual void SelectRange(const ui::Range& range) OVERRIDE; | 52 virtual void SelectRange(const ui::Range& range) OVERRIDE; |
| 53 virtual size_t GetCursorPosition() const OVERRIDE; | 53 virtual size_t GetCursorPosition() const OVERRIDE; |
| 54 virtual bool HandleKeyPressed(const views::KeyEvent& e) OVERRIDE; | 54 virtual bool HandleKeyPressed(const views::KeyEvent& e) OVERRIDE; |
| 55 virtual bool HandleKeyReleased(const views::KeyEvent& e) OVERRIDE; | 55 virtual bool HandleKeyReleased(const views::KeyEvent& e) OVERRIDE; |
| 56 virtual void HandleFocus() OVERRIDE; | 56 virtual void HandleFocus() OVERRIDE; |
| 57 virtual void HandleBlur() OVERRIDE; | 57 virtual void HandleBlur() OVERRIDE; |
| 58 virtual TextInputClient* GetTextInputClient() OVERRIDE; |
| 58 | 59 |
| 59 // Overridden from NativeControlGtk: | 60 // Overridden from NativeControlGtk: |
| 60 virtual void CreateNativeControl() OVERRIDE; | 61 virtual void CreateNativeControl() OVERRIDE; |
| 61 virtual void NativeControlCreated(GtkWidget* widget) OVERRIDE; | 62 virtual void NativeControlCreated(GtkWidget* widget) OVERRIDE; |
| 62 | 63 |
| 63 // Returns true if the textfield is for password. | 64 // Returns true if the textfield is for password. |
| 64 bool IsPassword(); | 65 bool IsPassword(); |
| 65 | 66 |
| 66 private: | 67 private: |
| 67 Textfield* textfield_; | 68 Textfield* textfield_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 92 GdkEvent* event, | 93 GdkEvent* event, |
| 93 NativeTextfieldGtk* textfield); | 94 NativeTextfieldGtk* textfield); |
| 94 gboolean OnMouseUp(); | 95 gboolean OnMouseUp(); |
| 95 | 96 |
| 96 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); | 97 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); |
| 97 }; | 98 }; |
| 98 | 99 |
| 99 } // namespace views | 100 } // namespace views |
| 100 | 101 |
| 101 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ | 102 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ |
| OLD | NEW |