Index: ui/views/events/event.h |
=================================================================== |
--- ui/views/events/event.h (revision 150588) |
+++ ui/views/events/event.h (working copy) |
@@ -279,50 +279,6 @@ |
DISALLOW_COPY_AND_ASSIGN(TouchEvent); |
}; |
-//////////////////////////////////////////////////////////////////////////////// |
-// KeyEvent class |
-// |
-// KeyEvent encapsulates keyboard input events - key press and release. |
-// |
-//////////////////////////////////////////////////////////////////////////////// |
-class VIEWS_EXPORT KeyEvent : public Event { |
- public: |
- explicit KeyEvent(const NativeEvent& native_event); |
- |
- // Creates a new KeyEvent synthetically (i.e. not in response to an input |
- // 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); |
- |
- ui::KeyboardCode key_code() const { return key_code_; } |
- |
- // These setters allow an I18N virtual keyboard to fabricate a keyboard event |
- // which does not have a corresponding ui::KeyboardCode (example: U+00E1 Latin |
- // small letter A with acute, U+0410 Cyrillic capital letter A.) |
- // GetCharacter() and GetUnmodifiedCharacter() return the character. |
- void set_character(uint16 character) { character_ = character; } |
- void set_unmodified_character(uint16 unmodified_character) { |
- unmodified_character_ = unmodified_character; |
- } |
- |
- // Gets the character generated by this key event. It only supports Unicode |
- // BMP characters. |
- uint16 GetCharacter() const; |
- |
- // Gets the character generated by this key event ignoring concurrently-held |
- // modifiers (except shift). |
- uint16 GetUnmodifiedCharacter() const; |
- |
- private: |
- ui::KeyboardCode key_code_; |
- |
- uint16 character_; |
- uint16 unmodified_character_; |
- |
- DISALLOW_COPY_AND_ASSIGN(KeyEvent); |
-}; |
- |
class ScrollEvent; |
//////////////////////////////////////////////////////////////////////////////// |