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

Unified Diff: views/controls/native_control.h

Issue 150051: Fixing focus problems with the combobox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 6 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/controls/combobox/native_combobox_wrapper.h ('k') | views/controls/native_control.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/native_control.h
===================================================================
--- views/controls/native_control.h (revision 19517)
+++ views/controls/native_control.h (working copy)
@@ -81,17 +81,8 @@
void SetFixedWidth(int width, Alignment alignment);
void SetFixedHeight(int height, Alignment alignment);
- // Derived classes interested in receiving key down notification should
- // override this method and return true. In which case OnKeyDown is called
- // when a key down message is sent to the control.
- // Note that this method is called at the time of the control creation: the
- // behavior will not change if the returned value changes after the control
- // has been created.
- virtual bool NotifyOnKeyDown() const { return false; }
-
- // Invoked when a key is pressed on the control (if NotifyOnKeyDown returns
- // true). Should return true if the key message was processed, false
- // otherwise.
+ // Invoked when a key is pressed on the control.
+ // Should return true if the key message was processed, false otherwise.
virtual bool OnKeyDown(int virtual_key_code) { return false; }
// Returns additional extended style flags. When subclasses call
« no previous file with comments | « views/controls/combobox/native_combobox_wrapper.h ('k') | views/controls/native_control.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698