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

Unified Diff: ui/views/events/event.h

Issue 10535046: Add Windows commandline switch --enable-views-textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert TextfieldController change. Created 8 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
Index: ui/views/events/event.h
diff --git a/ui/views/events/event.h b/ui/views/events/event.h
index af4a06a0dee450b6e83672beb03f4cf00fda3867..636d04b3ed5a43da78a12958da492eb4f7ed503d 100644
--- a/ui/views/events/event.h
+++ b/ui/views/events/event.h
@@ -291,9 +291,7 @@ class VIEWS_EXPORT KeyEvent : public Event {
// event from the host environment). This is typically only used in testing as
// some metadata obtainable from the underlying native event is not present.
// It's also used by input methods to fabricate keyboard events.
- KeyEvent(ui::EventType type,
- ui::KeyboardCode key_code,
- int event_flags);
+ KeyEvent(ui::EventType type, ui::KeyboardCode key_code, int event_flags);
ui::KeyboardCode key_code() const { return key_code_; }
@@ -314,6 +312,9 @@ class VIEWS_EXPORT KeyEvent : public Event {
// modifiers (except shift).
uint16 GetUnmodifiedCharacter() const;
+ // Returns if the key is a numeric pad digit, regardless of NumLock state.
+ bool IsNumPadDigit() const;
+
private:
ui::KeyboardCode key_code_;

Powered by Google App Engine
This is Rietveld 408576698