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

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

Issue 1227363006: Virtualize EventDispatchMediator creation and cleanup calling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master_event_trusted_main
Patch Set: Rebase Created 5 years, 5 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
« no previous file with comments | « Source/core/events/GestureEvent.cpp ('k') | Source/core/events/KeyboardEvent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 const PlatformKeyboardEvent* keyEvent() const { return m_keyEvent.get(); } 81 const PlatformKeyboardEvent* keyEvent() const { return m_keyEvent.get(); }
82 82
83 int keyCode() const override; // key code for keydown and keyup, character f or keypress 83 int keyCode() const override; // key code for keydown and keyup, character f or keypress
84 int charCode() const override; // character code for keypress, 0 for keydown and keyup 84 int charCode() const override; // character code for keypress, 0 for keydown and keyup
85 bool repeat() const { return m_isAutoRepeat; } 85 bool repeat() const { return m_isAutoRepeat; }
86 86
87 const AtomicString& interfaceName() const override; 87 const AtomicString& interfaceName() const override;
88 bool isKeyboardEvent() const override; 88 bool isKeyboardEvent() const override;
89 int which() const override; 89 int which() const override;
90 90
91 PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override;
92
91 DECLARE_VIRTUAL_TRACE(); 93 DECLARE_VIRTUAL_TRACE();
92 94
93 private: 95 private:
94 KeyboardEvent(); 96 KeyboardEvent();
95 KeyboardEvent(const PlatformKeyboardEvent&, AbstractView*); 97 KeyboardEvent(const PlatformKeyboardEvent&, AbstractView*);
96 KeyboardEvent(const AtomicString&, const KeyboardEventInit&); 98 KeyboardEvent(const AtomicString&, const KeyboardEventInit&);
97 KeyboardEvent(const AtomicString& type, bool canBubble, bool cancelable, Abs tractView*, 99 KeyboardEvent(const AtomicString& type, bool canBubble, bool cancelable, Abs tractView*,
98 const String& keyIdentifier, const String& code, const String& key, unsi gned location, 100 const String& keyIdentifier, const String& code, const String& key, unsi gned location,
99 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey); 101 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
100 102
(...skipping 11 matching lines...) Expand all
112 private: 114 private:
113 explicit KeyboardEventDispatchMediator(PassRefPtrWillBeRawPtr<KeyboardEvent> ); 115 explicit KeyboardEventDispatchMediator(PassRefPtrWillBeRawPtr<KeyboardEvent> );
114 bool dispatchEvent(EventDispatcher&) const override; 116 bool dispatchEvent(EventDispatcher&) const override;
115 }; 117 };
116 118
117 DEFINE_EVENT_TYPE_CASTS(KeyboardEvent); 119 DEFINE_EVENT_TYPE_CASTS(KeyboardEvent);
118 120
119 } // namespace blink 121 } // namespace blink
120 122
121 #endif // KeyboardEvent_h 123 #endif // KeyboardEvent_h
OLDNEW
« no previous file with comments | « Source/core/events/GestureEvent.cpp ('k') | Source/core/events/KeyboardEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698