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

Side by Side Diff: Source/core/platform/chromium/ClipboardChromium.h

Issue 16715002: Refactor WebCore::DragImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge upstream changes, some changes per jamesr Created 7 years, 6 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
« no previous file with comments | « Source/core/platform/DragImage.cpp ('k') | Source/core/platform/chromium/ClipboardChromium.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2008, Google Inc. 1 // Copyright (c) 2008, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 virtual PassRefPtr<FileList> files() const; 88 virtual PassRefPtr<FileList> files() const;
89 89
90 void setDragImage(CachedImage*, const IntPoint&); 90 void setDragImage(CachedImage*, const IntPoint&);
91 void setDragImageElement(Node*, const IntPoint&); 91 void setDragImageElement(Node*, const IntPoint&);
92 92
93 PassRefPtr<ChromiumDataObject> dataObject() 93 PassRefPtr<ChromiumDataObject> dataObject()
94 { 94 {
95 return m_dataObject; 95 return m_dataObject;
96 } 96 }
97 97
98 virtual DragImageRef createDragImage(IntPoint& dragLoc) const; 98 virtual PassOwnPtr<DragImage> createDragImage(IntPoint& dragLoc) const;
99 virtual void declareAndWriteDragImage(Element*, const KURL&, const Strin g& title, Frame*); 99 virtual void declareAndWriteDragImage(Element*, const KURL&, const Strin g& title, Frame*);
100 virtual void writeURL(const KURL&, const String&, Frame*); 100 virtual void writeURL(const KURL&, const String&, Frame*);
101 virtual void writeRange(Range*, Frame*); 101 virtual void writeRange(Range*, Frame*);
102 virtual void writePlainText(const String&); 102 virtual void writePlainText(const String&);
103 103
104 virtual bool hasData(); 104 virtual bool hasData();
105 105
106 virtual PassRefPtr<DataTransferItemList> items(); 106 virtual PassRefPtr<DataTransferItemList> items();
107 Frame* frame() const { return m_frame; } 107 Frame* frame() const { return m_frame; }
108 108
109 private: 109 private:
110 ClipboardChromium(ClipboardType, PassRefPtr<ChromiumDataObject>, Clipboa rdAccessPolicy, Frame*); 110 ClipboardChromium(ClipboardType, PassRefPtr<ChromiumDataObject>, Clipboa rdAccessPolicy, Frame*);
111 111
112 void resetFromClipboard(); 112 void resetFromClipboard();
113 void setDragImage(CachedImage*, Node*, const IntPoint&); 113 void setDragImage(CachedImage*, Node*, const IntPoint&);
114 RefPtr<ChromiumDataObject> m_dataObject; 114 RefPtr<ChromiumDataObject> m_dataObject;
115 Frame* m_frame; 115 Frame* m_frame;
116 }; 116 };
117 117
118 } // namespace WebCore 118 } // namespace WebCore
119 119
120 #endif // ClipboardChromium_h 120 #endif // ClipboardChromium_h
OLDNEW
« no previous file with comments | « Source/core/platform/DragImage.cpp ('k') | Source/core/platform/chromium/ClipboardChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698