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

Side by Side Diff: ui/base/clipboard/clipboard_aurax11.cc

Issue 8803006: Implement Clipboard::ReadData and Clipboard::WriteData for Mac. (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
« no previous file with comments | « ui/base/clipboard/clipboard.cc ('k') | ui/base/clipboard/clipboard_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/base/clipboard/clipboard.h" 5 #include "ui/base/clipboard/clipboard.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "third_party/skia/include/core/SkBitmap.h" 9 #include "third_party/skia/include/core/SkBitmap.h"
10 #include "ui/gfx/linux_util.h" 10 #include "ui/gfx/linux_util.h"
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 } 253 }
254 254
255 void Clipboard::ReadFile(FilePath* file) const { 255 void Clipboard::ReadFile(FilePath* file) const {
256 NOTIMPLEMENTED(); 256 NOTIMPLEMENTED();
257 } 257 }
258 258
259 void Clipboard::ReadFiles(std::vector<FilePath>* files) const { 259 void Clipboard::ReadFiles(std::vector<FilePath>* files) const {
260 NOTIMPLEMENTED(); 260 NOTIMPLEMENTED();
261 } 261 }
262 262
263 void Clipboard::ReadData(const std::string& format, std::string* result) { 263 void Clipboard::ReadData(const std::string& format, std::string* result) const {
264 result->clear(); 264 result->clear();
265 ClipboardData* data = GetClipboardData(); 265 ClipboardData* data = GetClipboardData();
266 if (data->custom_data_format() == format) 266 if (data->custom_data_format() == format)
267 *result = std::string(data->custom_data_data(), data->custom_data_len()); 267 *result = std::string(data->custom_data_data(), data->custom_data_len());
268 } 268 }
269 269
270 uint64 Clipboard::GetSequenceNumber(Buffer buffer) { 270 uint64 Clipboard::GetSequenceNumber(Buffer buffer) {
271 NOTIMPLEMENTED(); 271 NOTIMPLEMENTED();
272 return 0; 272 return 0;
273 } 273 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 Clipboard::FormatType Clipboard::GetBitmapFormatType() { 325 Clipboard::FormatType Clipboard::GetBitmapFormatType() {
326 return std::string(kMimeTypeBitmap); 326 return std::string(kMimeTypeBitmap);
327 } 327 }
328 328
329 // static 329 // static
330 Clipboard::FormatType Clipboard::GetWebKitSmartPasteFormatType() { 330 Clipboard::FormatType Clipboard::GetWebKitSmartPasteFormatType() {
331 return std::string(kMimeTypeWebkitSmartPaste); 331 return std::string(kMimeTypeWebkitSmartPaste);
332 } 332 }
333 333
334 } // namespace ui 334 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/clipboard/clipboard.cc ('k') | ui/base/clipboard/clipboard_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698