Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: views/controls/textfield/native_textfield_gtk.h

Issue 6675005: Integrate the new input method API for Views into Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows build. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/html_dialog_view.cc ('k') | views/controls/textfield/native_textfield_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698