| 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_aurax11.h" | 5 #include "ui/base/clipboard/clipboard_aurax11.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> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "third_party/skia/include/core/SkBitmap.h" | 21 #include "third_party/skia/include/core/SkBitmap.h" |
| 22 #include "ui/base/clipboard/custom_data_helper.h" | 22 #include "ui/base/clipboard/custom_data_helper.h" |
| 23 #include "ui/base/x/selection_owner.h" | 23 #include "ui/base/x/selection_owner.h" |
| 24 #include "ui/base/x/selection_requestor.h" | 24 #include "ui/base/x/selection_requestor.h" |
| 25 #include "ui/base/x/selection_utils.h" | 25 #include "ui/base/x/selection_utils.h" |
| 26 #include "ui/base/x/x11_util.h" | 26 #include "ui/base/x/x11_util.h" |
| 27 #include "ui/events/platform/platform_event_dispatcher.h" | 27 #include "ui/events/platform/platform_event_dispatcher.h" |
| 28 #include "ui/events/platform/platform_event_observer.h" | 28 #include "ui/events/platform/platform_event_observer.h" |
| 29 #include "ui/events/platform/platform_event_source.h" | 29 #include "ui/events/platform/platform_event_source.h" |
| 30 #include "ui/gfx/codec/png_codec.h" | 30 #include "ui/gfx/codec/png_codec.h" |
| 31 #include "ui/gfx/size.h" | 31 #include "ui/gfx/geometry/size.h" |
| 32 #include "ui/gfx/x/x11_atom_cache.h" | 32 #include "ui/gfx/x/x11_atom_cache.h" |
| 33 | 33 |
| 34 namespace ui { | 34 namespace ui { |
| 35 | 35 |
| 36 namespace { | 36 namespace { |
| 37 | 37 |
| 38 const char kClipboard[] = "CLIPBOARD"; | 38 const char kClipboard[] = "CLIPBOARD"; |
| 39 const char kClipboardManager[] = "CLIPBOARD_MANAGER"; | 39 const char kClipboardManager[] = "CLIPBOARD_MANAGER"; |
| 40 const char kMimeTypeFilename[] = "chromium/filename"; | 40 const char kMimeTypeFilename[] = "chromium/filename"; |
| 41 const char kMimeTypePepperCustomData[] = "chromium/x-pepper-custom-data"; | 41 const char kMimeTypePepperCustomData[] = "chromium/x-pepper-custom-data"; |
| (...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 930 if (format.Equals(GetBitmapFormatType())) | 930 if (format.Equals(GetBitmapFormatType())) |
| 931 return; | 931 return; |
| 932 | 932 |
| 933 std::vector<unsigned char> bytes(data_data, data_data + data_len); | 933 std::vector<unsigned char> bytes(data_data, data_data + data_len); |
| 934 scoped_refptr<base::RefCountedMemory> mem( | 934 scoped_refptr<base::RefCountedMemory> mem( |
| 935 base::RefCountedBytes::TakeVector(&bytes)); | 935 base::RefCountedBytes::TakeVector(&bytes)); |
| 936 aurax11_details_->InsertMapping(format.ToString(), mem); | 936 aurax11_details_->InsertMapping(format.ToString(), mem); |
| 937 } | 937 } |
| 938 | 938 |
| 939 } // namespace ui | 939 } // namespace ui |
| OLD | NEW |