OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/android/shortcut_helper.h" | 5 #include "chrome/browser/android/shortcut_helper.h" |
6 | 6 |
7 #include <jni.h> | 7 #include <jni.h> |
8 | 8 |
9 #include "base/android/context_utils.h" | 9 #include "base/android/context_utils.h" |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
11 #include "base/android/jni_array.h" | 11 #include "base/android/jni_array.h" |
12 #include "base/android/jni_string.h" | 12 #include "base/android/jni_string.h" |
13 #include "base/basictypes.h" | |
14 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
15 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
16 #include "chrome/browser/manifest/manifest_icon_downloader.h" | 15 #include "chrome/browser/manifest/manifest_icon_downloader.h" |
17 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
19 #include "jni/ShortcutHelper_jni.h" | 18 #include "jni/ShortcutHelper_jni.h" |
20 #include "ui/gfx/android/java_bitmap.h" | 19 #include "ui/gfx/android/java_bitmap.h" |
21 #include "ui/gfx/color_analysis.h" | 20 #include "ui/gfx/color_analysis.h" |
22 #include "url/gurl.h" | 21 #include "url/gurl.h" |
23 | 22 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 SkColorGetR(mean_color), SkColorGetG(mean_color), | 195 SkColorGetR(mean_color), SkColorGetG(mean_color), |
197 SkColorGetB(mean_color)); | 196 SkColorGetB(mean_color)); |
198 } | 197 } |
199 | 198 |
200 return gfx::CreateSkBitmapFromJavaBitmap(gfx::JavaBitmap(result.obj())); | 199 return gfx::CreateSkBitmapFromJavaBitmap(gfx::JavaBitmap(result.obj())); |
201 } | 200 } |
202 | 201 |
203 bool ShortcutHelper::RegisterShortcutHelper(JNIEnv* env) { | 202 bool ShortcutHelper::RegisterShortcutHelper(JNIEnv* env) { |
204 return RegisterNativesImpl(env); | 203 return RegisterNativesImpl(env); |
205 } | 204 } |
OLD | NEW |