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

Unified Diff: Source/core/clipboard/DataObjectItem.cpp

Issue 1115553002: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/clipboard/DataObject.cpp ('k') | Source/core/clipboard/Pasteboard.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/clipboard/DataObjectItem.cpp
diff --git a/Source/core/clipboard/DataObjectItem.cpp b/Source/core/clipboard/DataObjectItem.cpp
index 83f73ff648f7124f03b11c72a467ae2eb1d64a31..5f7588358c19acc5a80a8cee69f3dbd9340d5b8d 100644
--- a/Source/core/clipboard/DataObjectItem.cpp
+++ b/Source/core/clipboard/DataObjectItem.cpp
@@ -126,7 +126,7 @@ Blob* DataObjectItem::getAsFile() const
// method to the blob registry; that way the data is only copied over
// into the renderer when it's actually read, not when the blob is
// initially constructed).
- RefPtr<SharedBuffer> data = static_cast<PassRefPtr<SharedBuffer>>(blink::Platform::current()->clipboard()->readImage(blink::WebClipboard::BufferStandard));
+ RefPtr<SharedBuffer> data = static_cast<PassRefPtr<SharedBuffer>>(Platform::current()->clipboard()->readImage(WebClipboard::BufferStandard));
OwnPtr<BlobData> blobData = BlobData::create();
blobData->appendBytes(data->data(), data->size());
blobData->setContentType(mimeTypeImagePng);
@@ -145,20 +145,20 @@ String DataObjectItem::getAsString() const
ASSERT(m_source == PasteboardSource);
- blink::WebClipboard::Buffer buffer = Pasteboard::generalPasteboard()->buffer();
+ WebClipboard::Buffer buffer = Pasteboard::generalPasteboard()->buffer();
String data;
// This is ugly but there's no real alternative.
if (m_type == mimeTypeTextPlain) {
- data = blink::Platform::current()->clipboard()->readPlainText(buffer);
+ data = Platform::current()->clipboard()->readPlainText(buffer);
} else if (m_type == mimeTypeTextHTML) {
- blink::WebURL ignoredSourceURL;
+ WebURL ignoredSourceURL;
unsigned ignored;
- data = blink::Platform::current()->clipboard()->readHTML(buffer, &ignoredSourceURL, &ignored, &ignored);
+ data = Platform::current()->clipboard()->readHTML(buffer, &ignoredSourceURL, &ignored, &ignored);
} else {
- data = blink::Platform::current()->clipboard()->readCustomData(buffer, m_type);
+ data = Platform::current()->clipboard()->readCustomData(buffer, m_type);
}
- return blink::Platform::current()->clipboard()->sequenceNumber(buffer) == m_sequenceNumber ? data : String();
+ return Platform::current()->clipboard()->sequenceNumber(buffer) == m_sequenceNumber ? data : String();
}
bool DataObjectItem::isFilename() const
« no previous file with comments | « Source/core/clipboard/DataObject.cpp ('k') | Source/core/clipboard/Pasteboard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698