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

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

Issue 5988010: focus reverse traversal was not working for TextfieldViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: explicitly forward key/focus event to TextfieldViews 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
Index: views/controls/textfield/textfield.h
diff --git a/views/controls/textfield/textfield.h b/views/controls/textfield/textfield.h
index 9dd1ee9febfdaf3aadd6f65e16d496157f1bfc1a..0aef7cf3f9bf8c2fc698c8598355192646145e20 100644
--- a/views/controls/textfield/textfield.h
+++ b/views/controls/textfield/textfield.h
@@ -244,6 +244,11 @@ class Textfield : public View {
virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e);
virtual void SetEnabled(bool enabled);
virtual void PaintFocusBorder(gfx::Canvas* canvas);
+ virtual bool OnKeyPressed(const views::KeyEvent& e);
+ virtual bool OnKeyReleased(const views::KeyEvent& e);
+ virtual void WillGainFocus();
+ virtual void DidGainFocus();
+ virtual void WillLoseFocus();
// Accessibility accessors, overridden from View:
virtual AccessibilityTypes::Role GetAccessibleRole();

Powered by Google App Engine
This is Rietveld 408576698