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.h" | 5 #include "ui/base/clipboard/clipboard.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 #include <X11/extensions/Xfixes.h> | 8 #include <X11/extensions/Xfixes.h> |
9 #include <X11/Xatom.h> | 9 #include <X11/Xatom.h> |
10 #include <map> | 10 #include <map> |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 FormatType, type, (GDK_TARGET_STRING)); | 629 FormatType, type, (GDK_TARGET_STRING)); |
630 return type; | 630 return type; |
631 } | 631 } |
632 | 632 |
633 // static | 633 // static |
634 const Clipboard::FormatType& Clipboard::GetPlainTextWFormatType() { | 634 const Clipboard::FormatType& Clipboard::GetPlainTextWFormatType() { |
635 return GetPlainTextFormatType(); | 635 return GetPlainTextFormatType(); |
636 } | 636 } |
637 | 637 |
638 // static | 638 // static |
| 639 const Clipboard::FormatType& Clipboard::GetUrlFormatType() { |
| 640 return GetPlainTextFormatType(); |
| 641 } |
| 642 |
| 643 // static |
| 644 const Clipboard::FormatType& Clipboard::GetUrlWFormatType() { |
| 645 return GetPlainTextWFormatType(); |
| 646 } |
| 647 |
| 648 // static |
639 const Clipboard::FormatType& Clipboard::GetHtmlFormatType() { | 649 const Clipboard::FormatType& Clipboard::GetHtmlFormatType() { |
640 CR_DEFINE_STATIC_LOCAL(FormatType, type, (kMimeTypeHTML)); | 650 CR_DEFINE_STATIC_LOCAL(FormatType, type, (kMimeTypeHTML)); |
641 return type; | 651 return type; |
642 } | 652 } |
643 | 653 |
644 // static | 654 // static |
645 const Clipboard::FormatType& Clipboard::GetRtfFormatType() { | 655 const Clipboard::FormatType& Clipboard::GetRtfFormatType() { |
646 CR_DEFINE_STATIC_LOCAL(FormatType, type, (kMimeTypeRTF)); | 656 CR_DEFINE_STATIC_LOCAL(FormatType, type, (kMimeTypeRTF)); |
647 return type; | 657 return type; |
648 } | 658 } |
(...skipping 29 matching lines...) Expand all Loading... |
678 return clipboard_; | 688 return clipboard_; |
679 case BUFFER_SELECTION: | 689 case BUFFER_SELECTION: |
680 return primary_selection_; | 690 return primary_selection_; |
681 default: | 691 default: |
682 NOTREACHED(); | 692 NOTREACHED(); |
683 return NULL; | 693 return NULL; |
684 } | 694 } |
685 } | 695 } |
686 | 696 |
687 } // namespace ui | 697 } // namespace ui |
OLD | NEW |