OLD | NEW |
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 Loading... |
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 |
OLD | NEW |