Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Side by Side Diff: ui/base/clipboard/clipboard_android.cc

Issue 2847523002: Android: Remove GetApplicationContext part 4 (Closed)
Patch Set: Rebase and fix build Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/android/window_android.cc ('k') | ui/base/device_form_factor_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/android/window_android.cc ('k') | ui/base/device_form_factor_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698