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

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

Issue 10825254: Remove views::KeyEvent, replacing uses of it with ui::KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « ui/views/controls/webview/webview.cc ('k') | ui/views/events/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « ui/views/controls/webview/webview.cc ('k') | ui/views/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698