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_aura.h" | 5 #include "ui/base/clipboard/clipboard_aura.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "third_party/skia/include/core/SkBitmap.h" | 15 #include "third_party/skia/include/core/SkBitmap.h" |
16 #include "ui/base/clipboard/custom_data_helper.h" | 16 #include "ui/base/clipboard/custom_data_helper.h" |
17 #include "ui/gfx/size.h" | 17 #include "ui/gfx/geometry/size.h" |
18 | 18 |
19 namespace ui { | 19 namespace ui { |
20 | 20 |
21 namespace { | 21 namespace { |
22 const char kMimeTypeFilename[] = "chromium/filename"; | 22 const char kMimeTypeFilename[] = "chromium/filename"; |
23 const char kMimeTypeBitmap[] = "image/bmp"; | 23 const char kMimeTypeBitmap[] = "image/bmp"; |
24 const char kMimeTypePepperCustomData[] = "chromium/x-pepper-custom-data"; | 24 const char kMimeTypePepperCustomData[] = "chromium/x-pepper-custom-data"; |
25 const char kMimeTypeWebkitSmartPaste[] = "chromium/x-webkit-paste"; | 25 const char kMimeTypeWebkitSmartPaste[] = "chromium/x-webkit-paste"; |
26 const size_t kMaxClipboardSize = 1; | 26 const size_t kMaxClipboardSize = 1; |
27 | 27 |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 ClipboardDataBuilder::WriteBitmap(bitmap); | 680 ClipboardDataBuilder::WriteBitmap(bitmap); |
681 } | 681 } |
682 | 682 |
683 void ClipboardAura::WriteData(const FormatType& format, | 683 void ClipboardAura::WriteData(const FormatType& format, |
684 const char* data_data, | 684 const char* data_data, |
685 size_t data_len) { | 685 size_t data_len) { |
686 ClipboardDataBuilder::WriteData(format.ToString(), data_data, data_len); | 686 ClipboardDataBuilder::WriteData(format.ToString(), data_data, data_len); |
687 } | 687 } |
688 | 688 |
689 } // namespace ui | 689 } // namespace ui |
OLD | NEW |