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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 reserv ed. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
11 * 11 *
12 * This library is distributed in the hope that it will be useful, 12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details. 15 * Library General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Library General Public License 17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB. If not, write to 18 * along with this library; see the file COPYING.LIB. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA. 20 * Boston, MA 02110-1301, USA.
21 * 21 *
22 */ 22 */
23 23
24 #ifndef KeyboardEvent_h 24 #ifndef KeyboardEvent_h
25 #define KeyboardEvent_h 25 #define KeyboardEvent_h
26 26
27 #include "core/CoreExport.h" 27 #include "core/CoreExport.h"
28 #include "core/events/KeyboardEventInit.h" 28 #include "core/events/KeyboardEventInit.h"
29 #include "core/events/UIEventWithKeyState.h" 29 #include "core/events/UIEventWithKeyState.h"
30 #include <memory>
31 30
32 namespace blink { 31 namespace blink {
33 32
34 class EventDispatcher; 33 class EventDispatcher;
35 class PlatformKeyboardEvent; 34 class PlatformKeyboardEvent;
36 35
37 class CORE_EXPORT KeyboardEvent final : public UIEventWithKeyState { 36 class CORE_EXPORT KeyboardEvent final : public UIEventWithKeyState {
38 DEFINE_WRAPPERTYPEINFO(); 37 DEFINE_WRAPPERTYPEINFO();
39 public: 38 public:
40 enum KeyLocationCode { 39 enum KeyLocationCode {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 private: 90 private:
92 KeyboardEvent(); 91 KeyboardEvent();
93 KeyboardEvent(const PlatformKeyboardEvent&, AbstractView*); 92 KeyboardEvent(const PlatformKeyboardEvent&, AbstractView*);
94 KeyboardEvent(const AtomicString&, const KeyboardEventInit&); 93 KeyboardEvent(const AtomicString&, const KeyboardEventInit&);
95 KeyboardEvent(const AtomicString& type, bool canBubble, bool cancelable, Abs tractView*, 94 KeyboardEvent(const AtomicString& type, bool canBubble, bool cancelable, Abs tractView*,
96 const String& keyIdentifier, const String& code, const String& key, unsi gned location, 95 const String& keyIdentifier, const String& code, const String& key, unsi gned location,
97 PlatformEvent::Modifiers, double platformTimeStamp); 96 PlatformEvent::Modifiers, double platformTimeStamp);
98 97
99 void initLocationModifiers(unsigned location); 98 void initLocationModifiers(unsigned location);
100 99
101 std::unique_ptr<PlatformKeyboardEvent> m_keyEvent; 100 OwnPtr<PlatformKeyboardEvent> m_keyEvent;
102 String m_keyIdentifier; 101 String m_keyIdentifier;
103 String m_code; 102 String m_code;
104 String m_key; 103 String m_key;
105 unsigned m_location; 104 unsigned m_location;
106 }; 105 };
107 106
108 DEFINE_EVENT_TYPE_CASTS(KeyboardEvent); 107 DEFINE_EVENT_TYPE_CASTS(KeyboardEvent);
109 108
110 } // namespace blink 109 } // namespace blink
111 110
112 #endif // KeyboardEvent_h 111 #endif // KeyboardEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/GenericEventQueue.h ('k') | third_party/WebKit/Source/core/events/KeyboardEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698