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

Side by Side Diff: third_party/WebKit/Source/core/events/KeyboardEvent.h

Issue 2655873003: Remove PlatformEvent it is no longer used. (Closed)
Patch Set: Remove PlatformEvent it is no longer used. Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const String& code() const { return m_code; } 73 const String& code() const { return m_code; }
74 const String& key() const { return m_key; } 74 const String& key() const { return m_key; }
75 75
76 unsigned location() const { return m_location; } 76 unsigned location() const { return m_location; }
77 77
78 const WebKeyboardEvent* keyEvent() const { return m_keyEvent.get(); } 78 const WebKeyboardEvent* keyEvent() const { return m_keyEvent.get(); }
79 79
80 int keyCode() 80 int keyCode()
81 const; // key code for keydown and keyup, character for keypress 81 const; // key code for keydown and keyup, character for keypress
82 int charCode() const; // character code for keypress, 0 for keydown and keyup 82 int charCode() const; // character code for keypress, 0 for keydown and keyup
83 bool repeat() const { return modifiers() & PlatformEvent::IsAutoRepeat; } 83 bool repeat() const { return modifiers() & WebInputEvent::IsAutoRepeat; }
84 84
85 const AtomicString& interfaceName() const override; 85 const AtomicString& interfaceName() const override;
86 bool isKeyboardEvent() const override; 86 bool isKeyboardEvent() const override;
87 int which() const override; 87 int which() const override;
88 bool isComposing() const { return m_isComposing; } 88 bool isComposing() const { return m_isComposing; }
89 89
90 DECLARE_VIRTUAL_TRACE(); 90 DECLARE_VIRTUAL_TRACE();
91 91
92 private: 92 private:
93 KeyboardEvent(); 93 KeyboardEvent();
94 KeyboardEvent(const WebKeyboardEvent&, LocalDOMWindow*); 94 KeyboardEvent(const WebKeyboardEvent&, LocalDOMWindow*);
95 95
96 void initLocationModifiers(unsigned location); 96 void initLocationModifiers(unsigned location);
97 97
98 std::unique_ptr<WebKeyboardEvent> m_keyEvent; 98 std::unique_ptr<WebKeyboardEvent> m_keyEvent;
99 String m_code; 99 String m_code;
100 String m_key; 100 String m_key;
101 unsigned m_location; 101 unsigned m_location;
102 bool m_isComposing; 102 bool m_isComposing;
103 }; 103 };
104 104
105 DEFINE_EVENT_TYPE_CASTS(KeyboardEvent); 105 DEFINE_EVENT_TYPE_CASTS(KeyboardEvent);
106 106
107 } // namespace blink 107 } // namespace blink
108 108
109 #endif // KeyboardEvent_h 109 #endif // KeyboardEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/GestureEvent.cpp ('k') | third_party/WebKit/Source/core/events/KeyboardEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698