| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 } | 78 } |
| 79 | 79 |
| 80 Blob* DataTransferItem::getAsFile() const | 80 Blob* DataTransferItem::getAsFile() const |
| 81 { | 81 { |
| 82 if (!m_dataTransfer->canReadData()) | 82 if (!m_dataTransfer->canReadData()) |
| 83 return nullptr; | 83 return nullptr; |
| 84 | 84 |
| 85 return m_item->getAsFile(); | 85 return m_item->getAsFile(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 DataTransfer* DataTransferItem::dataTransfer() const | |
| 89 { | |
| 90 return m_dataTransfer; | |
| 91 } | |
| 92 | |
| 93 DataObjectItem* DataTransferItem::dataObjectItem() const | |
| 94 { | |
| 95 return m_item; | |
| 96 } | |
| 97 | |
| 98 DataTransferItem::DataTransferItem(DataTransfer* dataTransfer, DataObjectItem* i
tem) | 88 DataTransferItem::DataTransferItem(DataTransfer* dataTransfer, DataObjectItem* i
tem) |
| 99 : m_dataTransfer(dataTransfer) | 89 : m_dataTransfer(dataTransfer) |
| 100 , m_item(item) | 90 , m_item(item) |
| 101 { | 91 { |
| 102 } | 92 } |
| 103 | 93 |
| 104 DEFINE_TRACE(DataTransferItem) | 94 DEFINE_TRACE(DataTransferItem) |
| 105 { | 95 { |
| 106 visitor->trace(m_dataTransfer); | 96 visitor->trace(m_dataTransfer); |
| 107 visitor->trace(m_item); | 97 visitor->trace(m_item); |
| 108 } | 98 } |
| 109 | 99 |
| 110 } // namespace blink | 100 } // namespace blink |
| OLD | NEW |