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

Side by Side Diff: Source/core/clipboard/DataTransferItemList.h

Issue 640303002: Enable Oilpan for core/clipboard/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove some slightly pointy edges Created 5 years, 8 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 28 matching lines...) Expand all
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class DataObject; 42 class DataObject;
43 class DataTransfer; 43 class DataTransfer;
44 class DataTransferItem; 44 class DataTransferItem;
45 class File; 45 class File;
46 46
47 class ExceptionState; 47 class ExceptionState;
48 48
49 class DataTransferItemList final : public RefCountedWillBeGarbageCollected<DataT ransferItemList>, public ScriptWrappable { 49 class DataTransferItemList final : public GarbageCollected<DataTransferItemList> , public ScriptWrappable {
50 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DataTransferItemList);
51 DEFINE_WRAPPERTYPEINFO(); 50 DEFINE_WRAPPERTYPEINFO();
52 public: 51 public:
53 static PassRefPtrWillBeRawPtr<DataTransferItemList> create(PassRefPtrWillBeR awPtr<DataTransfer>, PassRefPtrWillBeRawPtr<DataObject>); 52 static DataTransferItemList* create(DataTransfer*, DataObject*);
54 53
55 size_t length() const; 54 size_t length() const;
56 PassRefPtrWillBeRawPtr<DataTransferItem> item(unsigned long index); 55 DataTransferItem* item(unsigned long index);
57 void deleteItem(unsigned long index, ExceptionState&); 56 void deleteItem(unsigned long index, ExceptionState&);
58 void clear(); 57 void clear();
59 PassRefPtrWillBeRawPtr<DataTransferItem> add(const String& data, const Strin g& type, ExceptionState&); 58 DataTransferItem* add(const String& data, const String& type, ExceptionState &);
60 PassRefPtrWillBeRawPtr<DataTransferItem> add(File*); 59 DataTransferItem* add(File*);
61 60
62 DECLARE_TRACE(); 61 DECLARE_TRACE();
63 62
64 private: 63 private:
65 DataTransferItemList(PassRefPtrWillBeRawPtr<DataTransfer>, PassRefPtrWillBeR awPtr<DataObject>); 64 DataTransferItemList(DataTransfer*, DataObject*);
66 65
67 RefPtrWillBeMember<DataTransfer> m_dataTransfer; 66 Member<DataTransfer> m_dataTransfer;
68 RefPtrWillBeMember<DataObject> m_dataObject; 67 Member<DataObject> m_dataObject;
69 }; 68 };
70 69
71 } // namespace blink 70 } // namespace blink
72 71
73 #endif // DataTransferItemList_h 72 #endif // DataTransferItemList_h
OLDNEW
« no previous file with comments | « Source/core/clipboard/DataTransferItem.idl ('k') | Source/core/clipboard/DataTransferItemList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698