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

Side by Side Diff: webkit/tools/test_shell/simple_clipboard_impl.cc

Issue 8775025: Add glue for supporting custom MIME types in DataTransfer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/tools/test_shell/simple_clipboard_impl.h" 5 #include "webkit/tools/test_shell/simple_clipboard_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bitmap.rowBytes(), 87 bitmap.rowBytes(),
88 false, 88 false,
89 std::vector<gfx::PNGCodec::Comment>(), 89 std::vector<gfx::PNGCodec::Comment>(),
90 Z_BEST_SPEED, 90 Z_BEST_SPEED,
91 &png_data)) { 91 &png_data)) {
92 data->assign(reinterpret_cast<char*>(vector_as_array(&png_data)), 92 data->assign(reinterpret_cast<char*>(vector_as_array(&png_data)),
93 png_data.size()); 93 png_data.size());
94 } 94 }
95 } 95 }
96 96
97 void SimpleClipboardClient::ReadCustomData(ui::Clipboard::Buffer buffer,
98 const string16& type,
99 string16* data) {
100 GetClipboard()->ReadCustomData(buffer, type, data);
101 }
102
97 webkit_glue::ClipboardClient::WriteContext* 103 webkit_glue::ClipboardClient::WriteContext*
98 SimpleClipboardClient::CreateWriteContext() { 104 SimpleClipboardClient::CreateWriteContext() {
99 return NULL; 105 return NULL;
100 } 106 }
101
OLDNEW
« ui/base/clipboard/clipboard_aurax11.cc ('K') | « webkit/tools/test_shell/simple_clipboard_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698