| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_aura.h" | 5 #include "ui/base/clipboard/clipboard_aura.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 CR_DEFINE_STATIC_LOCAL(FormatType, type, (kMimeTypeURIList)); | 450 CR_DEFINE_STATIC_LOCAL(FormatType, type, (kMimeTypeURIList)); |
| 451 return type; | 451 return type; |
| 452 } | 452 } |
| 453 | 453 |
| 454 // static | 454 // static |
| 455 const Clipboard::FormatType& Clipboard::GetUrlWFormatType() { | 455 const Clipboard::FormatType& Clipboard::GetUrlWFormatType() { |
| 456 return GetUrlFormatType(); | 456 return GetUrlFormatType(); |
| 457 } | 457 } |
| 458 | 458 |
| 459 // static | 459 // static |
| 460 const Clipboard::FormatType& Clipboard::GetMozUrlFormatType() { |
| 461 CR_DEFINE_STATIC_LOCAL(FormatType, type, (kMimeTypeMozillaURL)); |
| 462 return type; |
| 463 } |
| 464 |
| 465 // static |
| 460 const Clipboard::FormatType& Clipboard::GetPlainTextFormatType() { | 466 const Clipboard::FormatType& Clipboard::GetPlainTextFormatType() { |
| 461 CR_DEFINE_STATIC_LOCAL(FormatType, type, (kMimeTypeText)); | 467 CR_DEFINE_STATIC_LOCAL(FormatType, type, (kMimeTypeText)); |
| 462 return type; | 468 return type; |
| 463 } | 469 } |
| 464 | 470 |
| 465 // static | 471 // static |
| 466 const Clipboard::FormatType& Clipboard::GetPlainTextWFormatType() { | 472 const Clipboard::FormatType& Clipboard::GetPlainTextWFormatType() { |
| 467 return GetPlainTextFormatType(); | 473 return GetPlainTextFormatType(); |
| 468 } | 474 } |
| 469 | 475 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 ClipboardDataBuilder::WriteBitmap(bitmap); | 689 ClipboardDataBuilder::WriteBitmap(bitmap); |
| 684 } | 690 } |
| 685 | 691 |
| 686 void ClipboardAura::WriteData(const FormatType& format, | 692 void ClipboardAura::WriteData(const FormatType& format, |
| 687 const char* data_data, | 693 const char* data_data, |
| 688 size_t data_len) { | 694 size_t data_len) { |
| 689 ClipboardDataBuilder::WriteData(format.ToString(), data_data, data_len); | 695 ClipboardDataBuilder::WriteData(format.ToString(), data_data, data_len); |
| 690 } | 696 } |
| 691 | 697 |
| 692 } // namespace ui | 698 } // namespace ui |
| OLD | NEW |