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

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: Reflect HTMLMenuElement as per spec 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
« no previous file with comments | « Source/core/events/RelatedEvent.h ('k') | Source/core/events/RelatedEvent.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, bool canBubble, bool cancelable, EventTarget* relatedTarget)
24 {
25 return adoptRefWillBeNoop(new RelatedEvent(type, canBubble, cancelable, rela tedTarget));
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& type, bool canBubble, bool cancel able, EventTarget* relatedTarget)
39 : Event(type, canBubble, cancelable)
40 , m_relatedTarget(relatedTarget)
41 {
42 ScriptWrappable::init(this);
43 }
44
45 RelatedEvent::RelatedEvent(const AtomicString& eventType, const RelatedEventInit & initializer)
46 : Event(eventType, initializer)
47 , m_relatedTarget(initializer.relatedTarget)
48 {
49 ScriptWrappable::init(this);
50 }
51
52 void RelatedEvent::trace(Visitor* visitor)
53 {
54 visitor->trace(m_relatedTarget);
55 Event::trace(visitor);
56 }
57
58 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/events/RelatedEvent.h ('k') | Source/core/events/RelatedEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698