OLD | NEW |
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 20 matching lines...) Expand all Loading... |
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 virtual ~ClipboardEvent(); | 35 virtual ~ClipboardEvent(); |
36 static PassRefPtrWillBeRawPtr<ClipboardEvent> create() | 36 static PassRefPtrWillBeRawPtr<ClipboardEvent> create() |
37 { | 37 { |
38 return adoptRefWillBeNoop(new ClipboardEvent()); | 38 return adoptRefWillBeNoop(new ClipboardEvent()); |
39 } | 39 } |
40 | 40 |
41 static PassRefPtrWillBeRawPtr<ClipboardEvent> create(const AtomicString& typ
e, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<DataTransfer> dataTra
nsfer) | 41 static PassRefPtrWillBeRawPtr<ClipboardEvent> create(const AtomicString& typ
e, bool canBubble, bool cancelable, DataTransfer* dataTransfer) |
42 { | 42 { |
43 return adoptRefWillBeNoop(new ClipboardEvent(type, canBubble, cancelable
, dataTransfer)); | 43 return adoptRefWillBeNoop(new ClipboardEvent(type, canBubble, cancelable
, dataTransfer)); |
44 } | 44 } |
45 | 45 |
46 DataTransfer* clipboardData() const { return m_clipboardData.get(); } | 46 DataTransfer* clipboardData() const { return m_clipboardData.get(); } |
47 | 47 |
48 DECLARE_VIRTUAL_TRACE(); | 48 DECLARE_VIRTUAL_TRACE(); |
49 | 49 |
50 private: | 50 private: |
51 ClipboardEvent(); | 51 ClipboardEvent(); |
52 ClipboardEvent(const AtomicString& type, bool canBubble, bool cancelable, Pa
ssRefPtrWillBeRawPtr<DataTransfer> clipboardData); | 52 ClipboardEvent(const AtomicString& type, bool canBubble, bool cancelable, Da
taTransfer* clipboardData); |
53 | 53 |
54 virtual const AtomicString& interfaceName() const override; | 54 virtual const AtomicString& interfaceName() const override; |
55 virtual bool isClipboardEvent() const override; | 55 virtual bool isClipboardEvent() const override; |
56 | 56 |
57 RefPtrWillBeMember<DataTransfer> m_clipboardData; | 57 PersistentWillBeMember<DataTransfer> m_clipboardData; |
58 }; | 58 }; |
59 | 59 |
60 } // namespace blink | 60 } // namespace blink |
61 | 61 |
62 #endif // ClipboardEvent_h | 62 #endif // ClipboardEvent_h |
OLD | NEW |