| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual gfx::NativeView GetTestingHandle() const OVERRIDE; | 50 virtual gfx::NativeView GetTestingHandle() const OVERRIDE; |
| 51 virtual bool IsIMEComposing() const OVERRIDE; | 51 virtual bool IsIMEComposing() const OVERRIDE; |
| 52 virtual void GetSelectedRange(ui::Range* range) const OVERRIDE; | 52 virtual void GetSelectedRange(ui::Range* range) const OVERRIDE; |
| 53 virtual void SelectRange(const ui::Range& range) OVERRIDE; | 53 virtual void SelectRange(const ui::Range& range) OVERRIDE; |
| 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 void ApplyStyleRange(const gfx::StyleRange& style) OVERRIDE; |
| 61 virtual void ApplyTextStyle(const TextStyle* style, | 61 virtual void ApplyDefaultStyle() OVERRIDE; |
| 62 const ui::Range& range) OVERRIDE; | |
| 63 virtual void ClearAllTextStyles() OVERRIDE; | |
| 64 virtual void ClearEditHistory() OVERRIDE; | 62 virtual void ClearEditHistory() OVERRIDE; |
| 65 | 63 |
| 66 // Overridden from NativeControlGtk: | 64 // Overridden from NativeControlGtk: |
| 67 virtual void CreateNativeControl() OVERRIDE; | 65 virtual void CreateNativeControl() OVERRIDE; |
| 68 virtual void NativeControlCreated(GtkWidget* widget) OVERRIDE; | 66 virtual void NativeControlCreated(GtkWidget* widget) OVERRIDE; |
| 69 | 67 |
| 70 // Returns true if the textfield is for password. | 68 // Returns true if the textfield is for password. |
| 71 bool IsPassword(); | 69 bool IsPassword(); |
| 72 | 70 |
| 73 private: | 71 private: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 92 // The actual paste clipboard action might be performed later if the | 90 // The actual paste clipboard action might be performed later if the |
| 93 // clipboard is not empty. | 91 // clipboard is not empty. |
| 94 bool paste_clipboard_requested_; | 92 bool paste_clipboard_requested_; |
| 95 | 93 |
| 96 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); | 94 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); |
| 97 }; | 95 }; |
| 98 | 96 |
| 99 } // namespace views | 97 } // namespace views |
| 100 | 98 |
| 101 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ | 99 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ |
| OLD | NEW |