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

Unified Diff: ui/events/event.cc

Issue 97963002: events: Remove KeyEvent::Copy(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years 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/events/event.cc
diff --git a/ui/events/event.cc b/ui/events/event.cc
index 1e4bdd0e6470a1ccd969cd1e671a891f6e7e216c..63202cb0ba855a30fee3e610e59b9c99b96ee530 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -567,20 +567,6 @@ uint16 KeyEvent::GetCharacter() const {
#endif
}
-KeyEvent* KeyEvent::Copy() const {
-#if defined(USE_OZONE)
- KeyEvent* copy = new KeyEvent(*this);
-#else
- KeyEvent* copy = HasNativeEvent() ?
- new KeyEvent(::CopyNativeEvent(native_event()), is_char()) :
- new KeyEvent(*this);
-#endif
-#if defined(USE_X11)
- copy->set_delete_native_event(true);
-#endif
- return copy;
-}
-
bool KeyEvent::IsUnicodeKeyCode() const {
if (!IsAltDown())
return false;

Powered by Google App Engine
This is Rietveld 408576698