Changeset 77779 in webkit
- Timestamp:
- Feb 6, 2011 3:48:37 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r77777 r77779 1 2011-02-06 Benjamin Poulain <ikipou@gmail.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Fix coding style errors in ClipboardQt.h 6 https://bugs.webkit.org/show_bug.cgi?id=43520 7 8 Fix coding style: order of header and indentation. 9 10 * platform/qt/ClipboardQt.h: 11 (WebCore::ClipboardQt::create): 12 (WebCore::ClipboardQt::clipboardData): 13 (WebCore::ClipboardQt::invalidateWritableData): 14 1 15 2011-02-06 Antti Koivisto <antti@apple.com> 2 16 -
trunk/Source/WebCore/platform/qt/ClipboardQt.h
r76248 r77779 27 27 #define ClipboardQt_h 28 28 29 #include "CachedResourceClient.h" 29 30 #include "Clipboard.h" 30 #include "CachedResourceClient.h"31 31 32 32 QT_BEGIN_NAMESPACE … … 36 36 namespace WebCore { 37 37 38 38 class CachedImage; 39 39 40 41 42 43 44 45 46 47 48 49 50 51 52 40 // State available during IE's events for drag and drop and copy/paste 41 class ClipboardQt : public Clipboard, public CachedResourceClient { 42 WTF_MAKE_FAST_ALLOCATED; 43 public: 44 static PassRefPtr<ClipboardQt> create(ClipboardAccessPolicy policy, const QMimeData* readableClipboard) 45 { 46 return adoptRef(new ClipboardQt(policy, readableClipboard)); 47 } 48 static PassRefPtr<ClipboardQt> create(ClipboardAccessPolicy policy, ClipboardType clipboardType = CopyAndPaste) 49 { 50 return adoptRef(new ClipboardQt(policy, clipboardType)); 51 } 52 virtual ~ClipboardQt(); 53 53 54 55 56 57 54 void clearData(const String& type); 55 void clearAllData(); 56 String getData(const String& type, bool& success) const; 57 bool setData(const String& type, const String& data); 58 58 59 60 61 59 // extensions beyond IE's API 60 virtual HashSet<String> types() const; 61 virtual PassRefPtr<FileList> files() const; 62 62 63 64 63 void setDragImage(CachedImage*, const IntPoint&); 64 void setDragImageElement(Node*, const IntPoint&); 65 65 66 67 68 69 70 66 virtual DragImageRef createDragImage(IntPoint& dragLoc) const; 67 virtual void declareAndWriteDragImage(Element*, const KURL&, const String& title, Frame*); 68 virtual void writeURL(const KURL&, const String&, Frame*); 69 virtual void writeRange(Range*, Frame*); 70 virtual void writePlainText(const String&); 71 71 72 72 virtual bool hasData(); 73 73 74 75 74 QMimeData* clipboardData() const { return m_writableData; } 75 void invalidateWritableData() { m_writableData = 0; } 76 76 77 78 77 private: 78 ClipboardQt(ClipboardAccessPolicy, const QMimeData* readableClipboard); 79 79 80 81 80 // Clipboard is writable so it will create its own QMimeData object 81 ClipboardQt(ClipboardAccessPolicy, ClipboardType); 82 82 83 83 void setDragImage(CachedImage*, Node*, const IntPoint& loc); 84 84 85 86 87 85 const QMimeData* m_readableData; 86 QMimeData* m_writableData; 87 }; 88 88 } 89 89
Note: See TracChangeset
for help on using the changeset viewer.