| 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 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TITLE_CACHE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TITLE_CACHE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TITLE_CACHE_H_ | 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TITLE_CACHE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Called from Java, updates a native cc::Layer based on the new texture | 49 // Called from Java, updates a native cc::Layer based on the new texture |
| 50 // information. | 50 // information. |
| 51 void UpdateLayer(JNIEnv* env, | 51 void UpdateLayer(JNIEnv* env, |
| 52 const base::android::JavaParamRef<jobject>& obj, | 52 const base::android::JavaParamRef<jobject>& obj, |
| 53 jint tab_id, | 53 jint tab_id, |
| 54 jint title_resource_id, | 54 jint title_resource_id, |
| 55 jint favicon_resource_id, | 55 jint favicon_resource_id, |
| 56 bool is_incognito, | 56 bool is_incognito, |
| 57 bool is_rtl); | 57 bool is_rtl); |
| 58 | 58 |
| 59 // Calls to Java to create update a title. |
| 60 void UpdateTitleForTab(int tab_id, int theme_color); |
| 61 |
| 59 // Called from Java, updates favicon. | 62 // Called from Java, updates favicon. |
| 60 void UpdateFavicon(JNIEnv* env, | 63 void UpdateFavicon(JNIEnv* env, |
| 61 const base::android::JavaParamRef<jobject>& obj, | 64 const base::android::JavaParamRef<jobject>& obj, |
| 62 jint tab_id, | 65 jint tab_id, |
| 63 jint favicon_resource_id); | 66 jint favicon_resource_id); |
| 64 | 67 |
| 65 void ClearExcept(JNIEnv* env, | 68 void ClearExcept(JNIEnv* env, |
| 66 const base::android::JavaParamRef<jobject>& obj, | 69 const base::android::JavaParamRef<jobject>& obj, |
| 67 jint except_id); | 70 jint except_id); |
| 68 | 71 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 89 | 92 |
| 90 DISALLOW_COPY_AND_ASSIGN(LayerTitleCache); | 93 DISALLOW_COPY_AND_ASSIGN(LayerTitleCache); |
| 91 }; | 94 }; |
| 92 | 95 |
| 93 bool RegisterLayerTitleCache(JNIEnv* env); | 96 bool RegisterLayerTitleCache(JNIEnv* env); |
| 94 | 97 |
| 95 } // namespace android | 98 } // namespace android |
| 96 } // namespace chrome | 99 } // namespace chrome |
| 97 | 100 |
| 98 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TITLE_CACHE_H_ | 101 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TITLE_CACHE_H_ |
| OLD | NEW |