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

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

Issue 1852663002: Oilpan: Remove WillBe types (part 9) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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.
(...skipping 25 matching lines...) Expand all
36 class CORE_EXPORT KeyboardEvent final : public UIEventWithKeyState { 36 class CORE_EXPORT KeyboardEvent final : public UIEventWithKeyState {
37 DEFINE_WRAPPERTYPEINFO(); 37 DEFINE_WRAPPERTYPEINFO();
38 public: 38 public:
39 enum KeyLocationCode { 39 enum KeyLocationCode {
40 DOM_KEY_LOCATION_STANDARD = 0x00, 40 DOM_KEY_LOCATION_STANDARD = 0x00,
41 DOM_KEY_LOCATION_LEFT = 0x01, 41 DOM_KEY_LOCATION_LEFT = 0x01,
42 DOM_KEY_LOCATION_RIGHT = 0x02, 42 DOM_KEY_LOCATION_RIGHT = 0x02,
43 DOM_KEY_LOCATION_NUMPAD = 0x03 43 DOM_KEY_LOCATION_NUMPAD = 0x03
44 }; 44 };
45 45
46 static PassRefPtrWillBeRawPtr<KeyboardEvent> create() 46 static RawPtr<KeyboardEvent> create()
47 { 47 {
48 return adoptRefWillBeNoop(new KeyboardEvent); 48 return adoptRefWillBeNoop(new KeyboardEvent);
49 } 49 }
50 50
51 static PassRefPtrWillBeRawPtr<KeyboardEvent> create(const PlatformKeyboardEv ent& platformEvent, AbstractView* view) 51 static RawPtr<KeyboardEvent> create(const PlatformKeyboardEvent& platformEve nt, AbstractView* view)
52 { 52 {
53 return adoptRefWillBeNoop(new KeyboardEvent(platformEvent, view)); 53 return new KeyboardEvent(platformEvent, view);
54 } 54 }
55 55
56 static PassRefPtrWillBeRawPtr<KeyboardEvent> create(ScriptState*, const Atom icString& type, const KeyboardEventInit&); 56 static RawPtr<KeyboardEvent> create(ScriptState*, const AtomicString& type, const KeyboardEventInit&);
57 57
58 static PassRefPtrWillBeRawPtr<KeyboardEvent> create(const AtomicString& type , bool canBubble, bool cancelable, AbstractView* view, 58 static RawPtr<KeyboardEvent> create(const AtomicString& type, bool canBubble , bool cancelable, AbstractView* view,
59 const String& keyIdentifier, const String& code, const String& key, unsi gned location, 59 const String& keyIdentifier, const String& code, const String& key, unsi gned location,
60 PlatformEvent::Modifiers modifiers, double platformTimeStamp) 60 PlatformEvent::Modifiers modifiers, double platformTimeStamp)
61 { 61 {
62 return adoptRefWillBeNoop(new KeyboardEvent(type, canBubble, cancelable, view, keyIdentifier, code, key, location, 62 return new KeyboardEvent(type, canBubble, cancelable, view, keyIdentifie r, code, key, location,
63 modifiers, platformTimeStamp)); 63 modifiers, platformTimeStamp);
64 } 64 }
65 65
66 ~KeyboardEvent() override; 66 ~KeyboardEvent() override;
67 67
68 void initKeyboardEvent(ScriptState*, const AtomicString& type, bool canBubbl e, bool cancelable, AbstractView*, 68 void initKeyboardEvent(ScriptState*, const AtomicString& type, bool canBubbl e, bool cancelable, AbstractView*,
69 const String& keyIdentifier, unsigned location, 69 const String& keyIdentifier, unsigned location,
70 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey); 70 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
71 71
72 const String& keyIdentifier() const { return m_keyIdentifier; } 72 const String& keyIdentifier() const { return m_keyIdentifier; }
73 const String& code() const { return m_code; } 73 const String& code() const { return m_code; }
(...skipping 28 matching lines...) Expand all
102 String m_code; 102 String m_code;
103 String m_key; 103 String m_key;
104 unsigned m_location; 104 unsigned m_location;
105 }; 105 };
106 106
107 DEFINE_EVENT_TYPE_CASTS(KeyboardEvent); 107 DEFINE_EVENT_TYPE_CASTS(KeyboardEvent);
108 108
109 } // namespace blink 109 } // namespace blink
110 110
111 #endif // KeyboardEvent_h 111 #endif // KeyboardEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/InputEvent.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