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

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

Issue 2011833003: Implement ui::ClipboardMus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch cleanup. Created 4 years, 6 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698