| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |