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

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

Issue 230083003: Oilpan: Move WorkerClients to the managed heap and trace its supplements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: CR comments and unbreak the non-oilpan build Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/clipboard/DataObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2008, 2009, Google Inc. All rights reserved. 2 * Copyright (c) 2008, 2009, 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // during a drag-n-drop operation. This is the data that WebCore is aware 51 // during a drag-n-drop operation. This is the data that WebCore is aware
52 // of and is not specific to a platform. 52 // of and is not specific to a platform.
53 class DataObject : public RefCountedWillBeGarbageCollectedFinalized<DataObject>, public WillBeHeapSupplementable<DataObject> { 53 class DataObject : public RefCountedWillBeGarbageCollectedFinalized<DataObject>, public WillBeHeapSupplementable<DataObject> {
54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DataObject); 54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DataObject);
55 public: 55 public:
56 static PassRefPtrWillBeRawPtr<DataObject> createFromPasteboard(PasteMode); 56 static PassRefPtrWillBeRawPtr<DataObject> createFromPasteboard(PasteMode);
57 static PassRefPtrWillBeRawPtr<DataObject> create(); 57 static PassRefPtrWillBeRawPtr<DataObject> create();
58 58
59 PassRefPtrWillBeRawPtr<DataObject> copy() const; 59 PassRefPtrWillBeRawPtr<DataObject> copy() const;
60 60
61 virtual ~DataObject();
62
61 // DataTransferItemList support. 63 // DataTransferItemList support.
62 size_t length() const; 64 size_t length() const;
63 PassRefPtrWillBeRawPtr<DataObjectItem> item(unsigned long index); 65 PassRefPtrWillBeRawPtr<DataObjectItem> item(unsigned long index);
64 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get th is called. 66 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get th is called.
65 void deleteItem(unsigned long index); 67 void deleteItem(unsigned long index);
66 void clearAll(); 68 void clearAll();
67 // Returns null if an item already exists with the provided type. 69 // Returns null if an item already exists with the provided type.
68 PassRefPtrWillBeRawPtr<DataObjectItem> add(const String& data, const String& type); 70 PassRefPtrWillBeRawPtr<DataObjectItem> add(const String& data, const String& type);
69 PassRefPtrWillBeRawPtr<DataObjectItem> add(PassRefPtrWillBeRawPtr<File>); 71 PassRefPtrWillBeRawPtr<DataObjectItem> add(PassRefPtrWillBeRawPtr<File>);
70 72
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 106
105 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; 107 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList;
106 108
107 // State of Shift/Ctrl/Alt/Meta keys. 109 // State of Shift/Ctrl/Alt/Meta keys.
108 int m_modifierKeyState; 110 int m_modifierKeyState;
109 }; 111 };
110 112
111 } // namespace WebCore 113 } // namespace WebCore
112 114
113 #endif 115 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/clipboard/DataObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698