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

Unified Diff: views/controls/textfield/native_textfield_gtk.h

Issue 5988010: focus reverse traversal was not working for TextfieldViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | views/controls/textfield/native_textfield_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/native_textfield_gtk.h
diff --git a/views/controls/textfield/native_textfield_gtk.h b/views/controls/textfield/native_textfield_gtk.h
index 7e1f7e86578996aa8a0378c1cab9c33cd0c2f232..afbb154832c9b18f32f029b63af7eac35d3cb61d 100644
--- a/views/controls/textfield/native_textfield_gtk.h
+++ b/views/controls/textfield/native_textfield_gtk.h
@@ -41,19 +41,26 @@ class NativeTextfieldGtk : public NativeControlGtk,
virtual void UpdateFont();
virtual void UpdateIsPassword();
virtual void UpdateEnabled();
- virtual bool IsPassword();
virtual gfx::Insets CalculateInsets();
virtual void UpdateHorizontalMargins();
virtual void UpdateVerticalMargins();
- virtual void SetFocus();
+ virtual bool SetFocus();
virtual View* GetView();
virtual gfx::NativeView GetTestingHandle() const;
virtual bool IsIMEComposing() const;
+ virtual bool HandleKeyPressed(const views::KeyEvent& e);
+ virtual bool HandleKeyReleased(const views::KeyEvent& e);
+ virtual void HandleWillGainFocus();
+ virtual void HandleDidGainFocus();
+ virtual void HandleWillLoseFocus();
// Overridden from NativeControlGtk:
virtual void CreateNativeControl();
virtual void NativeControlCreated(GtkWidget* widget);
+ // Returns true if the textfield is for password.
+ bool IsPassword();
+
private:
Textfield* textfield_;
« no previous file with comments | « no previous file | views/controls/textfield/native_textfield_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698