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

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

Issue 2558643003: [InputEvent] Move 'beforeinput' logic into |CompositeEditCommand::willApplyEditing()| (3/3) (Closed)
Patch Set: xiaocheng's review 3: Rebase and remove updateStyleAndLayoutIgnorePendingStylesheets() Created 3 years, 12 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 CORE_EXPORT DataObject : public GarbageCollectedFinalized<DataObject>, 53 class CORE_EXPORT DataObject : public GarbageCollectedFinalized<DataObject>,
54 public Supplementable<DataObject> { 54 public Supplementable<DataObject> {
55 USING_GARBAGE_COLLECTED_MIXIN(DataObject); 55 USING_GARBAGE_COLLECTED_MIXIN(DataObject);
56 56
57 public: 57 public:
58 static DataObject* createFromPasteboard(PasteMode); 58 static DataObject* createFromPasteboard(PasteMode);
59 static DataObject* createFromPlainTextAndHTML(const String& plainText,
60 const String& htmlText);
59 static DataObject* createFromString(const String&); 61 static DataObject* createFromString(const String&);
60 static DataObject* create(); 62 static DataObject* create();
61 static DataObject* create(WebDragData); 63 static DataObject* create(WebDragData);
62 64
63 virtual ~DataObject(); 65 virtual ~DataObject();
64 66
65 // DataTransferItemList support. 67 // DataTransferItemList support.
66 size_t length() const; 68 size_t length() const;
67 DataObjectItem* item(unsigned long index); 69 DataObjectItem* item(unsigned long index);
68 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get this 70 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get this
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 HeapVector<Member<DataObjectItem>> m_itemList; 124 HeapVector<Member<DataObjectItem>> m_itemList;
123 125
124 // State of Shift/Ctrl/Alt/Meta keys and Left/Right/Middle mouse buttons 126 // State of Shift/Ctrl/Alt/Meta keys and Left/Right/Middle mouse buttons
125 int m_modifiers; 127 int m_modifiers;
126 String m_filesystemId; 128 String m_filesystemId;
127 }; 129 };
128 130
129 } // namespace blink 131 } // namespace blink
130 132
131 #endif 133 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698