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

Side by Side Diff: ui/android/java/src/org/chromium/ui/resources/ResourceManager.java

Issue 1263053002: Move JNI annotations to annotations package. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 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 package org.chromium.ui.resources; 5 package org.chromium.ui.resources;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.content.res.Resources; 8 import android.content.res.Resources;
9 import android.graphics.Bitmap; 9 import android.graphics.Bitmap;
10 import android.graphics.Rect; 10 import android.graphics.Rect;
11 import android.util.SparseArray; 11 import android.util.SparseArray;
12 12
13 import org.chromium.base.CalledByNative; 13 import org.chromium.base.annotations.CalledByNative;
14 import org.chromium.base.JNINamespace; 14 import org.chromium.base.annotations.JNINamespace;
15 import org.chromium.ui.resources.ResourceLoader.ResourceLoaderCallback; 15 import org.chromium.ui.resources.ResourceLoader.ResourceLoaderCallback;
16 import org.chromium.ui.resources.dynamics.DynamicResource; 16 import org.chromium.ui.resources.dynamics.DynamicResource;
17 import org.chromium.ui.resources.dynamics.DynamicResourceLoader; 17 import org.chromium.ui.resources.dynamics.DynamicResourceLoader;
18 import org.chromium.ui.resources.statics.StaticResourceLoader; 18 import org.chromium.ui.resources.statics.StaticResourceLoader;
19 import org.chromium.ui.resources.system.SystemResourceLoader; 19 import org.chromium.ui.resources.system.SystemResourceLoader;
20 20
21 /** 21 /**
22 * The Java component of a manager for all static resources to be loaded and use d by CC layers. 22 * The Java component of a manager for all static resources to be loaded and use d by CC layers.
23 * This class does not hold any resource state, but passes it directly to native as they are loaded. 23 * This class does not hold any resource state, but passes it directly to native as they are loaded.
24 */ 24 */
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 private void registerResourceLoader(ResourceLoader loader) { 160 private void registerResourceLoader(ResourceLoader loader) {
161 mResourceLoaders.put(loader.getResourceType(), loader); 161 mResourceLoaders.put(loader.getResourceType(), loader);
162 } 162 }
163 163
164 private native void nativeOnResourceReady(long nativeResourceManagerImpl, in t resType, 164 private native void nativeOnResourceReady(long nativeResourceManagerImpl, in t resType,
165 int resId, Bitmap bitmap, int paddingLeft, int paddingTop, int paddi ngRight, 165 int resId, Bitmap bitmap, int paddingLeft, int paddingTop, int paddi ngRight,
166 int paddingBottom, int apertureLeft, int apertureTop, int apertureRi ght, 166 int paddingBottom, int apertureLeft, int apertureTop, int apertureRi ght,
167 int apertureBottom); 167 int apertureBottom);
168 168
169 } 169 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698