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

Side by Side Diff: ui/android/resources/resource_manager_impl.h

Issue 2746483003: ui/android: Fix Resource meta-data sharing with ResourceManager. (Closed)
Patch Set: jni Created 3 years, 9 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/resources/resource_manager.cc ('k') | ui/android/resources/resource_manager_impl.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef UI_ANDROID_RESOURCES_RESOURCE_MANAGER_IMPL_H_ 5 #ifndef UI_ANDROID_RESOURCES_RESOURCE_MANAGER_IMPL_H_
6 #define UI_ANDROID_RESOURCES_RESOURCE_MANAGER_IMPL_H_ 6 #define UI_ANDROID_RESOURCES_RESOURCE_MANAGER_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 CrushedSpriteResource* GetCrushedSpriteResource( 44 CrushedSpriteResource* GetCrushedSpriteResource(
45 int bitmap_res_id, int metadata_res_id) override; 45 int bitmap_res_id, int metadata_res_id) override;
46 46
47 // Called from Java 47 // Called from Java
48 // ---------------------------------------------------------- 48 // ----------------------------------------------------------
49 void OnResourceReady(JNIEnv* env, 49 void OnResourceReady(JNIEnv* env,
50 const base::android::JavaRef<jobject>& jobj, 50 const base::android::JavaRef<jobject>& jobj,
51 jint res_type, 51 jint res_type,
52 jint res_id, 52 jint res_id,
53 const base::android::JavaRef<jobject>& bitmap, 53 const base::android::JavaRef<jobject>& bitmap,
54 jint padding_left, 54 jlong native_resource);
55 jint padding_top,
56 jint padding_right,
57 jint padding_bottom,
58 jint aperture_left,
59 jint aperture_top,
60 jint aperture_right,
61 jint aperture_bottom);
62 void OnCrushedSpriteResourceReady( 55 void OnCrushedSpriteResourceReady(
63 JNIEnv* env, 56 JNIEnv* env,
64 const base::android::JavaRef<jobject>& jobj, 57 const base::android::JavaRef<jobject>& jobj,
65 jint bitmap_res_id, 58 jint bitmap_res_id,
66 const base::android::JavaRef<jobject>& bitmap, 59 const base::android::JavaRef<jobject>& bitmap,
67 const base::android::JavaRef<jobjectArray>& frame_rects, 60 const base::android::JavaRef<jobjectArray>& frame_rects,
68 jint unscaled_sprite_width, 61 jint unscaled_sprite_width,
69 jint unscaled_sprite_height, 62 jint unscaled_sprite_height,
70 jfloat scaled_sprite_width, 63 jfloat scaled_sprite_width,
71 jfloat scaled_sprite_height); 64 jfloat scaled_sprite_height);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 TintedResourceMap tinted_resources_; 109 TintedResourceMap tinted_resources_;
117 110
118 base::android::ScopedJavaGlobalRef<jobject> java_obj_; 111 base::android::ScopedJavaGlobalRef<jobject> java_obj_;
119 112
120 DISALLOW_COPY_AND_ASSIGN(ResourceManagerImpl); 113 DISALLOW_COPY_AND_ASSIGN(ResourceManagerImpl);
121 }; 114 };
122 115
123 } // namespace ui 116 } // namespace ui
124 117
125 #endif // UI_ANDROID_RESOURCES_RESOURCE_MANAGER_IMPL_H_ 118 #endif // UI_ANDROID_RESOURCES_RESOURCE_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « ui/android/resources/resource_manager.cc ('k') | ui/android/resources/resource_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698