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

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

Issue 928103002: Remove some unused functions in core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git cl try Created 5 years, 10 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) 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // A data object for holding data that would be in a clipboard or moved 50 // A data object for holding data that would be in a clipboard or moved
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;
60
61 virtual ~DataObject(); 59 virtual ~DataObject();
62 60
63 // DataTransferItemList support. 61 // DataTransferItemList support.
64 size_t length() const; 62 size_t length() const;
65 PassRefPtrWillBeRawPtr<DataObjectItem> item(unsigned long index); 63 PassRefPtrWillBeRawPtr<DataObjectItem> item(unsigned long index);
66 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get th is called. 64 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get th is called.
67 void deleteItem(unsigned long index); 65 void deleteItem(unsigned long index);
68 void clearAll(); 66 void clearAll();
69 // Returns null if an item already exists with the provided type. 67 // Returns null if an item already exists with the provided type.
70 PassRefPtrWillBeRawPtr<DataObjectItem> add(const String& data, const String& type); 68 PassRefPtrWillBeRawPtr<DataObjectItem> add(const String& data, const String& type);
(...skipping 23 matching lines...) Expand all
94 // Used to handle files (images) being dragged out. 92 // Used to handle files (images) being dragged out.
95 void addSharedBuffer(const String& name, PassRefPtr<SharedBuffer>); 93 void addSharedBuffer(const String& name, PassRefPtr<SharedBuffer>);
96 94
97 int modifierKeyState() const { return m_modifierKeyState; } 95 int modifierKeyState() const { return m_modifierKeyState; }
98 void setModifierKeyState(int modifierKeyState) { m_modifierKeyState = modifi erKeyState; } 96 void setModifierKeyState(int modifierKeyState) { m_modifierKeyState = modifi erKeyState; }
99 97
100 void trace(Visitor*); 98 void trace(Visitor*);
101 99
102 private: 100 private:
103 DataObject(); 101 DataObject();
104 explicit DataObject(const DataObject&);
105 102
106 PassRefPtrWillBeRawPtr<DataObjectItem> findStringItem(const String& type) co nst; 103 PassRefPtrWillBeRawPtr<DataObjectItem> findStringItem(const String& type) co nst;
107 bool internalAddStringItem(PassRefPtrWillBeRawPtr<DataObjectItem>); 104 bool internalAddStringItem(PassRefPtrWillBeRawPtr<DataObjectItem>);
108 void internalAddFileItem(PassRefPtrWillBeRawPtr<DataObjectItem>); 105 void internalAddFileItem(PassRefPtrWillBeRawPtr<DataObjectItem>);
109 106
110 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; 107 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList;
111 108
112 // State of Shift/Ctrl/Alt/Meta keys. 109 // State of Shift/Ctrl/Alt/Meta keys.
113 int m_modifierKeyState; 110 int m_modifierKeyState;
114 String m_filesystemId; 111 String m_filesystemId;
115 }; 112 };
116 113
117 } // namespace blink 114 } // namespace blink
118 115
119 #endif 116 #endif
OLDNEW
« no previous file with comments | « Source/core/animation/animatable/AnimatableValue.cpp ('k') | Source/core/clipboard/DataObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698