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

Side by Side Diff: chrome/browser/android/large_icon_bridge.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/large_icon_bridge.h" 5 #include "chrome/browser/android/large_icon_bridge.h"
6 6
7 #include <jni.h> 7 #include <jni.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
11 #include "base/android/scoped_java_ref.h" 11 #include "base/android/scoped_java_ref.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "chrome/browser/favicon/large_icon_service_factory.h" 14 #include "chrome/browser/favicon/large_icon_service_factory.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/profiles/profile_android.h" 16 #include "chrome/browser/profiles/profile_android.h"
17 #include "components/favicon/core/large_icon_service.h" 17 #include "components/favicon/core/large_icon_service.h"
18 #include "components/favicon_base/fallback_icon_style.h" 18 #include "components/favicon_base/fallback_icon_style.h"
19 #include "components/favicon_base/favicon_types.h" 19 #include "components/favicon_base/favicon_types.h"
20 #include "jni/LargeIconBridge_jni.h" 20 #include "jni/LargeIconBridge_jni.h"
21 #include "third_party/skia/include/core/SkBitmap.h" 21 #include "third_party/skia/include/core/SkBitmap.h"
22 #include "ui/gfx/android/java_bitmap.h" 22 #include "ui/gfx/android/java_bitmap.h"
23 #include "ui/gfx/codec/png_codec.h" 23 #include "ui/gfx/codec/png_codec.h"
24 24
25 using base::android::JavaParamRef;
25 using base::android::ScopedJavaGlobalRef; 26 using base::android::ScopedJavaGlobalRef;
26 using base::android::ScopedJavaLocalRef; 27 using base::android::ScopedJavaLocalRef;
27 using base::android::AttachCurrentThread; 28 using base::android::AttachCurrentThread;
28 using base::android::ConvertJavaStringToUTF16; 29 using base::android::ConvertJavaStringToUTF16;
29 30
30 namespace { 31 namespace {
31 32
32 const SkColor kDefaultBackgroundColor = SkColorSetRGB(0x78, 0x78, 0x78); 33 const SkColor kDefaultBackgroundColor = SkColorSetRGB(0x78, 0x78, 0x78);
33 34
34 void OnLargeIconAvailable( 35 void OnLargeIconAvailable(
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 callback_runner, 104 callback_runner,
104 &cancelable_task_tracker_); 105 &cancelable_task_tracker_);
105 106
106 return true; 107 return true;
107 } 108 }
108 109
109 // static 110 // static
110 bool LargeIconBridge::RegisterLargeIconBridge(JNIEnv* env) { 111 bool LargeIconBridge::RegisterLargeIconBridge(JNIEnv* env) {
111 return RegisterNativesImpl(env); 112 return RegisterNativesImpl(env);
112 } 113 }
OLDNEW
« no previous file with comments | « chrome/browser/android/java_exception_reporter.cc ('k') | chrome/browser/android/logo_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698