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

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

Issue 2457523003: Support 'insertReplacementText' for spellcheck (Closed)
Patch Set: yosin@ comment#57 #58 addressed 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // Drag and Drop: 49 // Drag and Drop:
50 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html 50 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html
51 // Clipboard API (copy/paste): 51 // Clipboard API (copy/paste):
52 // http://dev.w3.org/2006/webapi/clipops/clipops.html 52 // http://dev.w3.org/2006/webapi/clipops/clipops.html
53 class CORE_EXPORT DataTransfer final 53 class CORE_EXPORT DataTransfer final
54 : public GarbageCollectedFinalized<DataTransfer>, 54 : public GarbageCollectedFinalized<DataTransfer>,
55 public ScriptWrappable { 55 public ScriptWrappable {
56 DEFINE_WRAPPERTYPEINFO(); 56 DEFINE_WRAPPERTYPEINFO();
57 57
58 public: 58 public:
59 // Whether this transfer is serving a drag-drop or copy-paste request. 59 // Whether this transfer is serving a drag-drop, copy-paste, spellcheck,
60 // auto-correct or similar request.
60 enum DataTransferType { 61 enum DataTransferType {
61 CopyAndPaste, 62 CopyAndPaste,
62 DragAndDrop, 63 DragAndDrop,
64 InsertReplacementText,
63 }; 65 };
64 66
65 static DataTransfer* create(DataTransferType, 67 static DataTransfer* create(DataTransferType,
66 DataTransferAccessPolicy, 68 DataTransferAccessPolicy,
67 DataObject*); 69 DataObject*);
68 ~DataTransfer(); 70 ~DataTransfer();
69 71
70 bool isForCopyAndPaste() const { return m_transferType == CopyAndPaste; } 72 bool isForCopyAndPaste() const { return m_transferType == CopyAndPaste; }
71 bool isForDragAndDrop() const { return m_transferType == DragAndDrop; } 73 bool isForDragAndDrop() const { return m_transferType == DragAndDrop; }
72 74
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 Member<Node> m_dragImageElement; 147 Member<Node> m_dragImageElement;
146 }; 148 };
147 149
148 DragOperation convertDropZoneOperationToDragOperation( 150 DragOperation convertDropZoneOperationToDragOperation(
149 const String& dragOperation); 151 const String& dragOperation);
150 String convertDragOperationToDropZoneOperation(DragOperation); 152 String convertDragOperationToDropZoneOperation(DragOperation);
151 153
152 } // namespace blink 154 } // namespace blink
153 155
154 #endif // DataTransfer_h 156 #endif // DataTransfer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/clipboard/DataObject.cpp ('k') | third_party/WebKit/Source/core/editing/EditingUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698