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

Unified Diff: ui/gfx/android/java_bitmap.h

Issue 335943002: [Android] Composited selection handle rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@input_native_handles_final
Patch Set: Clean up paste popup interaction Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/android/java_bitmap.h
diff --git a/ui/gfx/android/java_bitmap.h b/ui/gfx/android/java_bitmap.h
index 44a17cade7442f4f8dc9550717c6268a291d2611..62c5b325e270af2f3e64ec5781fff657a2376a1b 100644
--- a/ui/gfx/android/java_bitmap.h
+++ b/ui/gfx/android/java_bitmap.h
@@ -58,6 +58,16 @@ GFX_EXPORT base::android::ScopedJavaLocalRef<jobject> CreateJavaBitmap(
SkBitmap::Config bitmap_config);
// Loads a Java-backed bitmap (android.graphics.Bitmap) from the provided
+// drawable resource id.
+GFX_EXPORT base::android::ScopedJavaLocalRef<jobject>
+ CreateJavaBitmapFromAndroidResource(int resource_id);
+
+// Loads a Java-backed bitmap (android.graphics.Bitmap) from the provided
+// drawable resource string identifier (e.g., android:drawable/overscroll_glow).
+GFX_EXPORT base::android::ScopedJavaLocalRef<jobject>
+ CreateJavaBitmapFromAndroidResource(const char* name);
+
+// Loads a Java-backed bitmap (android.graphics.Bitmap) from the provided
// drawable resource identifier (e.g., android:drawable/overscroll_glow). If the
// resource loads successfully, it will be integrally scaled down, preserving
// aspect ratio, to a size no smaller than |size|. Otherwise, null is returned.

Powered by Google App Engine
This is Rietveld 408576698