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

Side by Side Diff: Source/core/dom/Clipboard.h

Issue 26023003: Get rid of custom code for clipboard.clearData() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 bool isForCopyAndPaste() const { return m_clipboardType == CopyAndPaste; } 61 bool isForCopyAndPaste() const { return m_clipboardType == CopyAndPaste; }
62 bool isForDragAndDrop() const { return m_clipboardType == DragAndDrop; } 62 bool isForDragAndDrop() const { return m_clipboardType == DragAndDrop; }
63 63
64 String dropEffect() const { return dropEffectIsUninitialized() ? "none" : m_ dropEffect; } 64 String dropEffect() const { return dropEffectIsUninitialized() ? "none" : m_ dropEffect; }
65 void setDropEffect(const String&); 65 void setDropEffect(const String&);
66 bool dropEffectIsUninitialized() const { return m_dropEffect == "uninitializ ed"; } 66 bool dropEffectIsUninitialized() const { return m_dropEffect == "uninitializ ed"; }
67 String effectAllowed() const { return m_effectAllowed; } 67 String effectAllowed() const { return m_effectAllowed; }
68 void setEffectAllowed(const String&); 68 void setEffectAllowed(const String&);
69 69
70 void clearData(const String& type); 70 void clearData(const String& type = String());
71 void clearAllData();
72 String getData(const String& type) const; 71 String getData(const String& type) const;
73 bool setData(const String& type, const String& data); 72 bool setData(const String& type, const String& data);
74 73
75 // extensions beyond IE's API 74 // extensions beyond IE's API
76 Vector<String> types() const; 75 Vector<String> types() const;
77 PassRefPtr<FileList> files() const; 76 PassRefPtr<FileList> files() const;
78 77
79 IntPoint dragLocation() const { return m_dragLoc; } 78 IntPoint dragLocation() const { return m_dragLoc; }
80 ImageResource* dragImage() const { return m_dragImage.get(); } 79 ImageResource* dragImage() const { return m_dragImage.get(); }
81 void setDragImage(ImageResource*, const IntPoint&); 80 void setDragImage(ImageResource*, const IntPoint&);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 ResourcePtr<ImageResource> m_dragImage; 129 ResourcePtr<ImageResource> m_dragImage;
131 RefPtr<Node> m_dragImageElement; 130 RefPtr<Node> m_dragImageElement;
132 }; 131 };
133 132
134 DragOperation convertDropZoneOperationToDragOperation(const String& dragOperatio n); 133 DragOperation convertDropZoneOperationToDragOperation(const String& dragOperatio n);
135 String convertDragOperationToDropZoneOperation(DragOperation); 134 String convertDragOperationToDropZoneOperation(DragOperation);
136 135
137 } // namespace WebCore 136 } // namespace WebCore
138 137
139 #endif // Clipboard_h 138 #endif // Clipboard_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698