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

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

Issue 2217763003: Remove Blink-WebKit-only document.createEvent strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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 15 matching lines...) Expand all
26 26
27 #include "core/clipboard/DataTransfer.h" 27 #include "core/clipboard/DataTransfer.h"
28 #include "core/events/Event.h" 28 #include "core/events/Event.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 class ClipboardEvent final : public Event { 32 class ClipboardEvent final : public Event {
33 DEFINE_WRAPPERTYPEINFO(); 33 DEFINE_WRAPPERTYPEINFO();
34 public: 34 public:
35 ~ClipboardEvent() override; 35 ~ClipboardEvent() override;
36 static ClipboardEvent* create()
37 {
38 return new ClipboardEvent();
39 }
40 36
41 static ClipboardEvent* create(const AtomicString& type, bool canBubble, bool cancelable, DataTransfer* dataTransfer) 37 static ClipboardEvent* create(const AtomicString& type, bool canBubble, bool cancelable, DataTransfer* dataTransfer)
42 { 38 {
43 return new ClipboardEvent(type, canBubble, cancelable, dataTransfer); 39 return new ClipboardEvent(type, canBubble, cancelable, dataTransfer);
44 } 40 }
45 41
46 DataTransfer* clipboardData() const { return m_clipboardData.get(); } 42 DataTransfer* clipboardData() const { return m_clipboardData.get(); }
47 43
48 DECLARE_VIRTUAL_TRACE(); 44 DECLARE_VIRTUAL_TRACE();
49 45
50 private: 46 private:
51 ClipboardEvent();
52 ClipboardEvent(const AtomicString& type, bool canBubble, bool cancelable, Da taTransfer* clipboardData); 47 ClipboardEvent(const AtomicString& type, bool canBubble, bool cancelable, Da taTransfer* clipboardData);
53 48
54 const AtomicString& interfaceName() const override; 49 const AtomicString& interfaceName() const override;
55 bool isClipboardEvent() const override; 50 bool isClipboardEvent() const override;
56 51
57 Member<DataTransfer> m_clipboardData; 52 Member<DataTransfer> m_clipboardData;
58 }; 53 };
59 54
60 } // namespace blink 55 } // namespace blink
61 56
62 #endif // ClipboardEvent_h 57 #endif // ClipboardEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698