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_android.h" | 5 #include "ui/base/clipboard/clipboard_android.h" |
6 | 6 |
| 7 #include "base/android/context_utils.h" |
7 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
8 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
9 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
11 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
12 #include "jni/Clipboard_jni.h" | 13 #include "jni/Clipboard_jni.h" |
13 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
14 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
15 | 16 |
16 // TODO:(andrewhayden) Support additional formats in Android: Bitmap, URI, HTML, | 17 // TODO:(andrewhayden) Support additional formats in Android: Bitmap, URI, HTML, |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 const char* data_data, | 472 const char* data_data, |
472 size_t data_len) { | 473 size_t data_len) { |
473 g_map.Get().Set(format.ToString(), std::string(data_data, data_len)); | 474 g_map.Get().Set(format.ToString(), std::string(data_data, data_len)); |
474 } | 475 } |
475 | 476 |
476 bool RegisterClipboardAndroid(JNIEnv* env) { | 477 bool RegisterClipboardAndroid(JNIEnv* env) { |
477 return RegisterNativesImpl(env); | 478 return RegisterNativesImpl(env); |
478 } | 479 } |
479 | 480 |
480 } // namespace ui | 481 } // namespace ui |
OLD | NEW |