| 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 29 matching lines...) Expand all Loading... |
| 40 class ChromiumDataObject; | 40 class ChromiumDataObject; |
| 41 class IntPoint; | 41 class IntPoint; |
| 42 | 42 |
| 43 class ClipboardChromium : public Clipboard, public CachedResourceClient { | 43 class ClipboardChromium : public Clipboard, public CachedResourceClient { |
| 44 public: | 44 public: |
| 45 ~ClipboardChromium() {} | 45 ~ClipboardChromium() {} |
| 46 | 46 |
| 47 static PassRefPtr<ClipboardChromium> create( | 47 static PassRefPtr<ClipboardChromium> create( |
| 48 bool isForDragging, PassRefPtr<ChromiumDataObject>, ClipboardAccessP
olicy); | 48 bool isForDragging, PassRefPtr<ChromiumDataObject>, ClipboardAccessP
olicy); |
| 49 | 49 |
| 50 // Returns the file name (not including the extension). This removes any |
| 51 // invalid file system characters as well as making sure the |
| 52 // path + extension is not bigger than allowed by the file system. |
| 53 // This may change the file extension in dataObject. |
| 54 static String validateFileName(const String& title, ChromiumDataObject*
dataObject); |
| 55 |
| 50 virtual void clearData(const String& type); | 56 virtual void clearData(const String& type); |
| 51 void clearAllData(); | 57 void clearAllData(); |
| 52 String getData(const String& type, bool& success) const; | 58 String getData(const String& type, bool& success) const; |
| 53 bool setData(const String& type, const String& data); | 59 bool setData(const String& type, const String& data); |
| 54 | 60 |
| 55 // extensions beyond IE's API | 61 // extensions beyond IE's API |
| 56 HashSet<String> types() const; | 62 HashSet<String> types() const; |
| 57 | 63 |
| 58 void setDragImage(CachedImage*, const IntPoint&); | 64 void setDragImage(CachedImage*, const IntPoint&); |
| 59 void setDragImageElement(Node*, const IntPoint&); | 65 void setDragImageElement(Node*, const IntPoint&); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 75 | 81 |
| 76 void resetFromClipboard(); | 82 void resetFromClipboard(); |
| 77 void setDragImage(CachedImage*, Node*, const IntPoint&); | 83 void setDragImage(CachedImage*, Node*, const IntPoint&); |
| 78 RefPtr<ChromiumDataObject> m_dataObject; | 84 RefPtr<ChromiumDataObject> m_dataObject; |
| 79 Frame* m_frame; | 85 Frame* m_frame; |
| 80 }; | 86 }; |
| 81 | 87 |
| 82 } // namespace WebCore | 88 } // namespace WebCore |
| 83 | 89 |
| 84 #endif // ClipboardChromium_h | 90 #endif // ClipboardChromium_h |
| OLD | NEW |