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

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

Issue 24482004: events: Make platform specific events code into ui/events/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 2 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/aura/test/event_generator.cc ('k') | ui/base/dragdrop/os_exchange_data_provider_aurax11.h » ('j') | 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 <X11/extensions/Xfixes.h> 7 #include <X11/extensions/Xfixes.h>
8 #include <X11/Xatom.h> 8 #include <X11/Xatom.h>
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/memory/ref_counted_memory.h" 15 #include "base/memory/ref_counted_memory.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/memory/singleton.h" 17 #include "base/memory/singleton.h"
18 #include "base/message_loop/message_pump_observer.h" 18 #include "base/message_loop/message_pump_observer.h"
19 #include "base/message_loop/message_pump_x11.h" 19 #include "base/message_loop/message_pump_x11.h"
20 #include "base/stl_util.h" 20 #include "base/stl_util.h"
21 #include "base/strings/utf_string_conversions.h" 21 #include "base/strings/utf_string_conversions.h"
22 #include "third_party/skia/include/core/SkBitmap.h" 22 #include "third_party/skia/include/core/SkBitmap.h"
23 #include "ui/base/clipboard/custom_data_helper.h" 23 #include "ui/base/clipboard/custom_data_helper.h"
24 #include "ui/base/x/selection_owner.h" 24 #include "ui/base/x/selection_owner.h"
25 #include "ui/base/x/selection_requestor.h" 25 #include "ui/base/x/selection_requestor.h"
26 #include "ui/base/x/selection_utils.h" 26 #include "ui/base/x/selection_utils.h"
27 #include "ui/base/x/x11_atom_cache.h"
28 #include "ui/base/x/x11_util.h" 27 #include "ui/base/x/x11_util.h"
29 #include "ui/gfx/codec/png_codec.h" 28 #include "ui/gfx/codec/png_codec.h"
30 #include "ui/gfx/size.h" 29 #include "ui/gfx/size.h"
30 #include "ui/gfx/x/x11_atom_cache.h"
31 31
32 namespace ui { 32 namespace ui {
33 33
34 namespace { 34 namespace {
35 35
36 const char kClipboard[] = "CLIPBOARD"; 36 const char kClipboard[] = "CLIPBOARD";
37 const char kMimeTypeFilename[] = "chromium/filename"; 37 const char kMimeTypeFilename[] = "chromium/filename";
38 const char kMimeTypePepperCustomData[] = "chromium/x-pepper-custom-data"; 38 const char kMimeTypePepperCustomData[] = "chromium/x-pepper-custom-data";
39 const char kMimeTypeWebkitSmartPaste[] = "chromium/x-webkit-paste"; 39 const char kMimeTypeWebkitSmartPaste[] = "chromium/x-webkit-paste";
40 const char kTargets[] = "TARGETS"; 40 const char kTargets[] = "TARGETS";
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 return type; 858 return type;
859 } 859 }
860 860
861 // static 861 // static
862 const Clipboard::FormatType& Clipboard::GetPepperCustomDataFormatType() { 862 const Clipboard::FormatType& Clipboard::GetPepperCustomDataFormatType() {
863 CR_DEFINE_STATIC_LOCAL(FormatType, type, (kMimeTypePepperCustomData)); 863 CR_DEFINE_STATIC_LOCAL(FormatType, type, (kMimeTypePepperCustomData));
864 return type; 864 return type;
865 } 865 }
866 866
867 } // namespace ui 867 } // namespace ui
OLDNEW
« no previous file with comments | « ui/aura/test/event_generator.cc ('k') | ui/base/dragdrop/os_exchange_data_provider_aurax11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698