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

Side by Side Diff: chrome/browser/android/compositor/layer_title_cache.cc

Issue 1312153003: jni_generator: Pass object parameters as JavaParamRef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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 #include "chrome/browser/android/compositor/layer_title_cache.h" 5 #include "chrome/browser/android/compositor/layer_title_cache.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 bool RegisterLayerTitleCache(JNIEnv* env) { 103 bool RegisterLayerTitleCache(JNIEnv* env) {
104 return RegisterNativesImpl(env); 104 return RegisterNativesImpl(env);
105 } 105 }
106 106
107 // ---------------------------------------------------------------------------- 107 // ----------------------------------------------------------------------------
108 // Native JNI methods 108 // Native JNI methods
109 // ---------------------------------------------------------------------------- 109 // ----------------------------------------------------------------------------
110 110
111 jlong Init(JNIEnv* env, 111 jlong Init(JNIEnv* env,
112 jobject obj, 112 const JavaParamRef<jobject>& obj,
113 jint fade_width, 113 jint fade_width,
114 jint favicon_start_padding, 114 jint favicon_start_padding,
115 jint favicon_end_padding, 115 jint favicon_end_padding,
116 jint spinner_resource_id, 116 jint spinner_resource_id,
117 jint spinner_incognito_resource_id) { 117 jint spinner_incognito_resource_id) {
118 LayerTitleCache* cache = new LayerTitleCache( 118 LayerTitleCache* cache = new LayerTitleCache(
119 env, obj, fade_width, favicon_start_padding, favicon_end_padding, 119 env, obj, fade_width, favicon_start_padding, favicon_end_padding,
120 spinner_resource_id, spinner_incognito_resource_id); 120 spinner_resource_id, spinner_incognito_resource_id);
121 return reinterpret_cast<intptr_t>(cache); 121 return reinterpret_cast<intptr_t>(cache);
122 } 122 }
123 123
124 } // namespace android 124 } // namespace android
125 } // namespace chrome 125 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698