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

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

Issue 2457523003: Support 'insertReplacementText' for spellcheck (Closed)
Patch Set: fix for nit from Yosi_UTC9, Xiaocheng 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, copy-paste, spellcheck,
61 // auto-correct or similar request.
61 enum DataTransferType { 62 enum DataTransferType {
62 CopyAndPaste, 63 CopyAndPaste,
63 DragAndDrop, 64 DragAndDrop,
65 InsertReplacementText,
64 }; 66 };
65 67
66 static DataTransfer* create(DataTransferType, 68 static DataTransfer* create(DataTransferType,
67 DataTransferAccessPolicy, 69 DataTransferAccessPolicy,
68 DataObject*); 70 DataObject*);
69 ~DataTransfer(); 71 ~DataTransfer();
70 72
71 bool isForCopyAndPaste() const { return m_transferType == CopyAndPaste; } 73 bool isForCopyAndPaste() const { return m_transferType == CopyAndPaste; }
72 bool isForDragAndDrop() const { return m_transferType == DragAndDrop; } 74 bool isForDragAndDrop() const { return m_transferType == DragAndDrop; }
73 75
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 Member<Node> m_dragImageElement; 148 Member<Node> m_dragImageElement;
147 }; 149 };
148 150
149 DragOperation convertDropZoneOperationToDragOperation( 151 DragOperation convertDropZoneOperationToDragOperation(
150 const String& dragOperation); 152 const String& dragOperation);
151 String convertDragOperationToDropZoneOperation(DragOperation); 153 String convertDragOperationToDropZoneOperation(DragOperation);
152 154
153 } // namespace blink 155 } // namespace blink
154 156
155 #endif // DataTransfer_h 157 #endif // DataTransfer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698