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

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

Issue 10386085: Support 'Paste and Go' action in omnibox Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/clipboard/clipboard_aurax11.cc ('k') | no next file » | 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) 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
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
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
OLDNEW
« no previous file with comments | « ui/base/clipboard/clipboard_aurax11.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698