| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 StorageTypeFilename, | 55 StorageTypeFilename, |
| 56 // An image being dragged out of the renderer. Contains a buffer holding | 56 // An image being dragged out of the renderer. Contains a buffer holding |
| 57 // the image data as well as the suggested name for saving the image to. | 57 // the image data as well as the suggested name for saving the image to. |
| 58 StorageTypeBinaryData, | 58 StorageTypeBinaryData, |
| 59 // Stores the filesystem URL of one file being dragged into the renderer. | 59 // Stores the filesystem URL of one file being dragged into the renderer. |
| 60 StorageTypeFileSystemFile, | 60 StorageTypeFileSystemFile, |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 StorageType storageType; | 63 StorageType storageType; |
| 64 | 64 |
| 65 // TODO(dcheng): This should probably be a union. |
| 65 // Only valid when storageType == StorageTypeString. | 66 // Only valid when storageType == StorageTypeString. |
| 66 WebString stringType; | 67 WebString stringType; |
| 67 WebString stringData; | 68 WebString stringData; |
| 68 | 69 |
| 70 // Title associated with a link when stringType == "text/uri-list". |
| 71 WebString title; |
| 72 |
| 73 // Only valid when stringType == "text/html". Stores the base URL for the |
| 74 // contained markup. |
| 75 WebURL baseURL; |
| 76 |
| 69 // Only valid when storageType == StorageTypeFilename. | 77 // Only valid when storageType == StorageTypeFilename. |
| 70 WebString filenameData; | 78 WebString filenameData; |
| 71 WebString displayNameData; | 79 WebString displayNameData; |
| 72 | 80 |
| 73 // Only valid when storageType == StorageTypeBinaryData. | 81 // Only valid when storageType == StorageTypeBinaryData. |
| 74 WebData binaryData; | 82 WebData binaryData; |
| 75 | 83 WebURL binaryDataSourceURL; |
| 76 // Title associated with a link when stringType == "text/uri-list". | 84 WebString binaryDataFilenameExtension; |
| 77 // Filename when storageType == StorageTypeBinaryData. | 85 WebString binaryDataContentDisposition; |
| 78 WebString title; | |
| 79 | 86 |
| 80 // Only valid when storageType == StorageTypeFileSystemFile. | 87 // Only valid when storageType == StorageTypeFileSystemFile. |
| 81 WebURL fileSystemURL; | 88 WebURL fileSystemURL; |
| 82 long long fileSystemFileSize; | 89 long long fileSystemFileSize; |
| 83 WebString fileSystemId; | 90 WebString fileSystemId; |
| 84 | |
| 85 // Only valid when stringType == "text/html". | |
| 86 WebURL baseURL; | |
| 87 }; | 91 }; |
| 88 | 92 |
| 89 WebDragData() : m_valid(false), m_modifierKeyState(0) {} | 93 WebDragData() : m_valid(false), m_modifierKeyState(0) {} |
| 90 | 94 |
| 91 WebDragData(const WebDragData& object) | 95 WebDragData(const WebDragData& object) |
| 92 : m_valid(object.m_valid), | 96 : m_valid(object.m_valid), |
| 93 m_itemList(object.m_itemList), | 97 m_itemList(object.m_itemList), |
| 94 m_modifierKeyState(object.m_modifierKeyState), | 98 m_modifierKeyState(object.m_modifierKeyState), |
| 95 m_filesystemId(object.m_filesystemId) {} | 99 m_filesystemId(object.m_filesystemId) {} |
| 96 | 100 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 private: | 138 private: |
| 135 bool m_valid; | 139 bool m_valid; |
| 136 WebVector<Item> m_itemList; | 140 WebVector<Item> m_itemList; |
| 137 int m_modifierKeyState; // State of Shift/Ctrl/Alt/Meta keys. | 141 int m_modifierKeyState; // State of Shift/Ctrl/Alt/Meta keys. |
| 138 WebString m_filesystemId; | 142 WebString m_filesystemId; |
| 139 }; | 143 }; |
| 140 | 144 |
| 141 } // namespace blink | 145 } // namespace blink |
| 142 | 146 |
| 143 #endif | 147 #endif |
| OLD | NEW |