OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |