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

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

Issue 2457523003: Support 'insertReplacementText' for spellcheck (Closed)
Patch Set: Created 4 years, 1 month 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) 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, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Drag and Drop: 50 // Drag and Drop:
51 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html 51 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html
52 // Clipboard API (copy/paste): 52 // Clipboard API (copy/paste):
53 // http://dev.w3.org/2006/webapi/clipops/clipops.html 53 // http://dev.w3.org/2006/webapi/clipops/clipops.html
54 class CORE_EXPORT DataTransfer final 54 class CORE_EXPORT DataTransfer final
55 : public GarbageCollectedFinalized<DataTransfer>, 55 : public GarbageCollectedFinalized<DataTransfer>,
56 public ScriptWrappable { 56 public ScriptWrappable {
57 DEFINE_WRAPPERTYPEINFO(); 57 DEFINE_WRAPPERTYPEINFO();
58 58
59 public: 59 public:
60 // Whether this transfer is serving a drag-drop or copy-paste request. 60 // Whether this transfer is serving a drag-drop or copy-paste request.
chongz 2016/10/27 16:41:24 Can we update the comment to briefly describe what
61 enum DataTransferType { 61 enum DataTransferType {
62 CopyAndPaste, 62 CopyAndPaste,
63 DragAndDrop, 63 DragAndDrop,
64 InsertReplacementText,
64 }; 65 };
65 66
66 static DataTransfer* create(DataTransferType, 67 static DataTransfer* create(DataTransferType,
67 DataTransferAccessPolicy, 68 DataTransferAccessPolicy,
68 DataObject*); 69 DataObject*);
69 ~DataTransfer(); 70 ~DataTransfer();
70 71
71 bool isForCopyAndPaste() const { return m_transferType == CopyAndPaste; } 72 bool isForCopyAndPaste() const { return m_transferType == CopyAndPaste; }
72 bool isForDragAndDrop() const { return m_transferType == DragAndDrop; } 73 bool isForDragAndDrop() const { return m_transferType == DragAndDrop; }
73 74
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 Member<Node> m_dragImageElement; 147 Member<Node> m_dragImageElement;
147 }; 148 };
148 149
149 DragOperation convertDropZoneOperationToDragOperation( 150 DragOperation convertDropZoneOperationToDragOperation(
150 const String& dragOperation); 151 const String& dragOperation);
151 String convertDragOperationToDropZoneOperation(DragOperation); 152 String convertDragOperationToDropZoneOperation(DragOperation);
152 153
153 } // namespace blink 154 } // namespace blink
154 155
155 #endif // DataTransfer_h 156 #endif // DataTransfer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698