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

Unified Diff: views/examples/textfield_example.h

Issue 6034002: Replace Textfield::Keystroke with views::KeyEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: key_code, ET_KEY_PRESS for WM_CHAR 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 | « views/event_win.cc ('k') | views/widget/widget_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/examples/textfield_example.h
diff --git a/views/examples/textfield_example.h b/views/examples/textfield_example.h
index a14f44383d33a9a0e9c1e841ce5f719b128f727e..a448f9f752be821bcc8d1e590cf647a82dfbf817 100644
--- a/views/examples/textfield_example.h
+++ b/views/examples/textfield_example.h
@@ -75,8 +75,8 @@ class TextfieldExample : public ExampleBase,
}
// Let the control handle keystrokes.
- virtual bool HandleKeystroke(Textfield* sender,
- const Textfield::Keystroke& keystroke) {
+ virtual bool HandleKeyEvent(Textfield* sender,
+ const views::KeyEvent& key_event) {
return false;
}
@@ -109,4 +109,3 @@ class TextfieldExample : public ExampleBase,
} // namespace examples
#endif // VIEWS_EXAMPLES_TEXTFIELD_EXAMPLE_H_
-
« no previous file with comments | « views/event_win.cc ('k') | views/widget/widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698