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

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

Issue 1475773002: Add context_utils.h includes where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/clipboard/clipboard_android_unittest.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 "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
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
OLDNEW
« no previous file with comments | « ui/android/window_android.cc ('k') | ui/base/clipboard/clipboard_android_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698