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

Side by Side Diff: Source/core/events/RelatedEvent.cpp

Issue 243403006: Implement contextmenu attribute with basic support of <menu> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed review comments Created 6 years, 4 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "config.h"
6 #include "core/events/RelatedEvent.h"
7
8 namespace blink {
9
10 RelatedEventInit::RelatedEventInit()
11 {
12 }
13
14 RelatedEvent::~RelatedEvent()
15 {
16 }
17
18 PassRefPtrWillBeRawPtr<RelatedEvent> RelatedEvent::create()
19 {
20 return adoptRefWillBeNoop(new RelatedEvent);
21 }
22
23 PassRefPtrWillBeRawPtr<RelatedEvent> RelatedEvent::create(const AtomicString& ty pe)
24 {
25 return adoptRefWillBeNoop(new RelatedEvent(type));
26 }
27
28 PassRefPtrWillBeRawPtr<RelatedEvent> RelatedEvent::create(const AtomicString& ty pe, const RelatedEventInit& initializer)
29 {
30 return adoptRefWillBeNoop(new RelatedEvent(type, initializer));
31 }
32
33 RelatedEvent::RelatedEvent()
34 {
35 ScriptWrappable::init(this);
36 }
37
38 RelatedEvent::RelatedEvent(const AtomicString& eventType)
39 : Event(eventType, true, true)
40 {
41 ScriptWrappable::init(this);
42 }
43
44 RelatedEvent::RelatedEvent(const AtomicString& eventType, const RelatedEventInit & initializer)
45 : Event(eventType, initializer)
46 {
47 ScriptWrappable::init(this);
48 }
49
50 void RelatedEvent::trace(Visitor* visitor)
51 {
52 visitor->trace(m_relatedTarget);
53 Event::trace(visitor);
54 }
55
56 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698