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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual void UpdateFont() OVERRIDE; | 46 virtual void UpdateFont() OVERRIDE; |
47 virtual void UpdateIsPassword() OVERRIDE; | 47 virtual void UpdateIsPassword() OVERRIDE; |
48 virtual void UpdateEnabled() OVERRIDE; | 48 virtual void UpdateEnabled() OVERRIDE; |
49 virtual gfx::Insets CalculateInsets() OVERRIDE; | 49 virtual gfx::Insets CalculateInsets() OVERRIDE; |
50 virtual void UpdateHorizontalMargins() OVERRIDE; | 50 virtual void UpdateHorizontalMargins() OVERRIDE; |
51 virtual void UpdateVerticalMargins() OVERRIDE; | 51 virtual void UpdateVerticalMargins() OVERRIDE; |
52 virtual bool SetFocus() OVERRIDE; | 52 virtual bool SetFocus() OVERRIDE; |
53 virtual View* GetView() OVERRIDE; | 53 virtual View* GetView() OVERRIDE; |
54 virtual gfx::NativeView GetTestingHandle() const OVERRIDE; | 54 virtual gfx::NativeView GetTestingHandle() const OVERRIDE; |
55 virtual bool IsIMEComposing() const OVERRIDE; | 55 virtual bool IsIMEComposing() const OVERRIDE; |
| 56 virtual void GetSelectedRange(ui::Range* range) const OVERRIDE; |
| 57 virtual void SelectRange(const ui::Range& range) OVERRIDE; |
56 virtual void GetSelectionModel(gfx::SelectionModel* sel) const OVERRIDE; | 58 virtual void GetSelectionModel(gfx::SelectionModel* sel) const OVERRIDE; |
57 virtual void SelectSelectionModel(const gfx::SelectionModel& sel) OVERRIDE; | 59 virtual void SelectSelectionModel(const gfx::SelectionModel& sel) OVERRIDE; |
58 virtual size_t GetCursorPosition() const OVERRIDE; | 60 virtual size_t GetCursorPosition() const OVERRIDE; |
59 virtual bool HandleKeyPressed(const views::KeyEvent& e) OVERRIDE; | 61 virtual bool HandleKeyPressed(const views::KeyEvent& e) OVERRIDE; |
60 virtual bool HandleKeyReleased(const views::KeyEvent& e) OVERRIDE; | 62 virtual bool HandleKeyReleased(const views::KeyEvent& e) OVERRIDE; |
61 virtual void HandleFocus() OVERRIDE; | 63 virtual void HandleFocus() OVERRIDE; |
62 virtual void HandleBlur() OVERRIDE; | 64 virtual void HandleBlur() OVERRIDE; |
63 virtual TextInputClient* GetTextInputClient() OVERRIDE; | 65 virtual TextInputClient* GetTextInputClient() OVERRIDE; |
64 virtual void ApplyStyleRange(const gfx::StyleRange& style) OVERRIDE; | 66 virtual void ApplyStyleRange(const gfx::StyleRange& style) OVERRIDE; |
65 virtual void ApplyDefaultStyle() OVERRIDE; | 67 virtual void ApplyDefaultStyle() OVERRIDE; |
(...skipping 28 matching lines...) Expand all Loading... |
94 // The actual paste clipboard action might be performed later if the | 96 // The actual paste clipboard action might be performed later if the |
95 // clipboard is not empty. | 97 // clipboard is not empty. |
96 bool paste_clipboard_requested_; | 98 bool paste_clipboard_requested_; |
97 | 99 |
98 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); | 100 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); |
99 }; | 101 }; |
100 | 102 |
101 } // namespace views | 103 } // namespace views |
102 | 104 |
103 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ | 105 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ |
OLD | NEW |