| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <list> | 10 #include <list> |
| 11 #include <memory> |
| 11 | 12 |
| 12 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 13 #include "base/logging.h" | 14 #include "base/logging.h" |
| 14 #include "base/macros.h" | 15 #include "base/macros.h" |
| 15 #include "base/memory/scoped_ptr.h" | |
| 16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 18 #include "third_party/skia/include/core/SkBitmap.h" | 18 #include "third_party/skia/include/core/SkBitmap.h" |
| 19 #include "ui/base/clipboard/custom_data_helper.h" | 19 #include "ui/base/clipboard/custom_data_helper.h" |
| 20 #include "ui/gfx/geometry/size.h" | 20 #include "ui/gfx/geometry/size.h" |
| 21 | 21 |
| 22 namespace ui { | 22 namespace ui { |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 const char kMimeTypeFilename[] = "chromium/filename"; | 25 const char kMimeTypeFilename[] = "chromium/filename"; |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 ClipboardDataBuilder::WriteBitmap(bitmap); | 683 ClipboardDataBuilder::WriteBitmap(bitmap); |
| 684 } | 684 } |
| 685 | 685 |
| 686 void ClipboardAura::WriteData(const FormatType& format, | 686 void ClipboardAura::WriteData(const FormatType& format, |
| 687 const char* data_data, | 687 const char* data_data, |
| 688 size_t data_len) { | 688 size_t data_len) { |
| 689 ClipboardDataBuilder::WriteData(format.ToString(), data_data, data_len); | 689 ClipboardDataBuilder::WriteData(format.ToString(), data_data, data_len); |
| 690 } | 690 } |
| 691 | 691 |
| 692 } // namespace ui | 692 } // namespace ui |
| OLD | NEW |