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

Side by Side Diff: chrome/browser/android/compositor/tab_content_manager.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/tab_content_manager.h" 5 #include "chrome/browser/android/compositor/tab_content_manager.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.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"
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 363
364 bool RegisterTabContentManager(JNIEnv* env) { 364 bool RegisterTabContentManager(JNIEnv* env) {
365 return RegisterNativesImpl(env); 365 return RegisterNativesImpl(env);
366 } 366 }
367 367
368 // ---------------------------------------------------------------------------- 368 // ----------------------------------------------------------------------------
369 // Native JNI methods 369 // Native JNI methods
370 // ---------------------------------------------------------------------------- 370 // ----------------------------------------------------------------------------
371 371
372 jlong Init(JNIEnv* env, 372 jlong Init(JNIEnv* env,
373 jobject obj, 373 const JavaParamRef<jobject>& obj,
374 jint default_cache_size, 374 jint default_cache_size,
375 jint approximation_cache_size, 375 jint approximation_cache_size,
376 jint compression_queue_max_size, 376 jint compression_queue_max_size,
377 jint write_queue_max_size, 377 jint write_queue_max_size,
378 jboolean use_approximation_thumbnail) { 378 jboolean use_approximation_thumbnail) {
379 TabContentManager* manager = new TabContentManager( 379 TabContentManager* manager = new TabContentManager(
380 env, obj, default_cache_size, approximation_cache_size, 380 env, obj, default_cache_size, approximation_cache_size,
381 compression_queue_max_size, write_queue_max_size, 381 compression_queue_max_size, write_queue_max_size,
382 use_approximation_thumbnail); 382 use_approximation_thumbnail);
383 return reinterpret_cast<intptr_t>(manager); 383 return reinterpret_cast<intptr_t>(manager);
384 } 384 }
385 385
386 } // namespace android 386 } // namespace android
387 } // namespace chrome 387 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698