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 <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/android/context_utils.h" | |
11 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
12 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
13 #include "base/callback.h" | 12 #include "base/callback.h" |
14 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
15 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
16 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
17 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
18 #include "base/time/time.h" | 17 #include "base/time/time.h" |
19 #include "jni/Clipboard_jni.h" | 18 #include "jni/Clipboard_jni.h" |
20 #include "third_party/skia/include/core/SkBitmap.h" | 19 #include "third_party/skia/include/core/SkBitmap.h" |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 return RegisterNativesImpl(env); | 549 return RegisterNativesImpl(env); |
551 } | 550 } |
552 | 551 |
553 // Returns a pointer to the current ClipboardAndroid object. | 552 // Returns a pointer to the current ClipboardAndroid object. |
554 static jlong Init(JNIEnv* env, | 553 static jlong Init(JNIEnv* env, |
555 const base::android::JavaParamRef<jobject>& obj) { | 554 const base::android::JavaParamRef<jobject>& obj) { |
556 return reinterpret_cast<intptr_t>(Clipboard::GetForCurrentThread()); | 555 return reinterpret_cast<intptr_t>(Clipboard::GetForCurrentThread()); |
557 } | 556 } |
558 | 557 |
559 } // namespace ui | 558 } // namespace ui |
OLD | NEW |