| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SCENE_LAYER_TAB_LIST_SCENE_LAYER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TAB_LIST_SCENE_LAYER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TAB_LIST_SCENE_LAYER_H_ | 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TAB_LIST_SCENE_LAYER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 const base::android::JavaParamRef<jobject>& jobj, | 43 const base::android::JavaParamRef<jobject>& jobj, |
| 44 jint background_color, | 44 jint background_color, |
| 45 jfloat viewport_x, | 45 jfloat viewport_x, |
| 46 jfloat viewport_y, | 46 jfloat viewport_y, |
| 47 jfloat viewport_width, | 47 jfloat viewport_width, |
| 48 jfloat viewport_height, | 48 jfloat viewport_height, |
| 49 const base::android::JavaParamRef<jobject>& jlayer_title_cache, | 49 const base::android::JavaParamRef<jobject>& jlayer_title_cache, |
| 50 const base::android::JavaParamRef<jobject>& jtab_content_manager, | 50 const base::android::JavaParamRef<jobject>& jtab_content_manager, |
| 51 const base::android::JavaParamRef<jobject>& jresource_manager); | 51 const base::android::JavaParamRef<jobject>& jresource_manager); |
| 52 // TODO(dtrainor): This method is ridiculous. Break this apart? | 52 // TODO(dtrainor): This method is ridiculous. Break this apart? |
| 53 void PutTabLayer( | 53 void PutTabLayer(JNIEnv* env, |
| 54 JNIEnv* env, | 54 const base::android::JavaParamRef<jobject>& jobj, |
| 55 const base::android::JavaParamRef<jobject>& jobj, | 55 jint id, |
| 56 jint id, | 56 jint toolbar_resource_id, |
| 57 jint toolbar_resource_id, | 57 jint close_button_resource_id, |
| 58 jint close_button_resource_id, | 58 jint shadow_resource_id, |
| 59 jint shadow_resource_id, | 59 jint contour_resource_id, |
| 60 jint contour_resource_id, | 60 jint back_logo_resource_id, |
| 61 jint back_logo_resource_id, | 61 jint border_resource_id, |
| 62 jint border_resource_id, | 62 jint border_inner_shadow_resource_id, |
| 63 jint border_inner_shadow_resource_id, | 63 jboolean can_use_live_layer, |
| 64 jboolean can_use_live_layer, | 64 jboolean can_use_static_layer, |
| 65 jboolean browser_controls_at_bottom, | 65 jboolean browser_controls_at_bottom, |
| 66 jint tab_background_color, | 66 jint tab_background_color, |
| 67 jint back_logo_color, | 67 jint back_logo_color, |
| 68 jboolean incognito, | 68 jboolean incognito, |
| 69 jboolean is_portrait, | 69 jboolean is_portrait, |
| 70 jfloat x, | 70 jfloat x, |
| 71 jfloat y, | 71 jfloat y, |
| 72 jfloat width, | 72 jfloat width, |
| 73 jfloat height, | 73 jfloat height, |
| 74 jfloat content_width, | 74 jfloat content_width, |
| 75 jfloat content_height, | 75 jfloat content_height, |
| 76 jfloat visible_content_height, | 76 jfloat visible_content_height, |
| 77 jfloat shadow_x, | 77 jfloat shadow_x, |
| 78 jfloat shadow_y, | 78 jfloat shadow_y, |
| 79 jfloat shadow_width, | 79 jfloat shadow_width, |
| 80 jfloat shadow_height, | 80 jfloat shadow_height, |
| 81 jfloat pivot_x, | 81 jfloat pivot_x, |
| 82 jfloat pivot_y, | 82 jfloat pivot_y, |
| 83 jfloat rotation_x, | 83 jfloat rotation_x, |
| 84 jfloat rotation_y, | 84 jfloat rotation_y, |
| 85 jfloat alpha, | 85 jfloat alpha, |
| 86 jfloat border_alpha, | 86 jfloat border_alpha, |
| 87 jfloat border_inner_shadow_alpha, | 87 jfloat border_inner_shadow_alpha, |
| 88 jfloat contour_alpha, | 88 jfloat contour_alpha, |
| 89 jfloat shadow_alpha, | 89 jfloat shadow_alpha, |
| 90 jfloat close_alpha, | 90 jfloat close_alpha, |
| 91 jfloat close_btn_width, | 91 jfloat close_btn_width, |
| 92 jfloat static_to_view_blend, | 92 jfloat static_to_view_blend, |
| 93 jfloat border_scale, | 93 jfloat border_scale, |
| 94 jfloat saturation, | 94 jfloat saturation, |
| 95 jfloat brightness, | 95 jfloat brightness, |
| 96 jboolean show_toolbar, | 96 jboolean show_toolbar, |
| 97 jint default_theme_color, | 97 jint default_theme_color, |
| 98 jint toolbar_background_color, | 98 jint toolbar_background_color, |
| 99 jint close_button_color, | 99 jint close_button_color, |
| 100 jboolean anonymize_toolbar, | 100 jboolean anonymize_toolbar, |
| 101 jboolean show_tab_title, | 101 jboolean show_tab_title, |
| 102 jint toolbar_textbox_resource_id, | 102 jint toolbar_textbox_resource_id, |
| 103 jint toolbar_textbox_background_color, | 103 jint toolbar_textbox_background_color, |
| 104 jfloat toolbar_textbox_alpha, | 104 jfloat toolbar_textbox_alpha, |
| 105 jfloat toolbar_alpha, | 105 jfloat toolbar_alpha, |
| 106 jfloat toolbar_y_offset, | 106 jfloat toolbar_y_offset, |
| 107 jfloat side_border_scale, | 107 jfloat side_border_scale, |
| 108 jboolean inset_border); | 108 jboolean inset_border); |
| 109 | 109 |
| 110 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(JNIEnv* env); | 110 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(JNIEnv* env); |
| 111 | 111 |
| 112 void OnDetach() override; | 112 void OnDetach() override; |
| 113 bool ShouldShowBackground() override; | 113 bool ShouldShowBackground() override; |
| 114 SkColor GetBackgroundColor() override; | 114 SkColor GetBackgroundColor() override; |
| 115 | 115 |
| 116 private: | 116 private: |
| 117 // The set of tint colors that were used for a frame. | 117 // The set of tint colors that were used for a frame. |
| 118 std::unordered_set<int> used_tints_; | 118 std::unordered_set<int> used_tints_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 131 scoped_refptr<cc::Layer> own_tree_; | 131 scoped_refptr<cc::Layer> own_tree_; |
| 132 | 132 |
| 133 DISALLOW_COPY_AND_ASSIGN(TabListSceneLayer); | 133 DISALLOW_COPY_AND_ASSIGN(TabListSceneLayer); |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 bool RegisterTabListSceneLayer(JNIEnv* env); | 136 bool RegisterTabListSceneLayer(JNIEnv* env); |
| 137 | 137 |
| 138 } // namespace android | 138 } // namespace android |
| 139 | 139 |
| 140 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TAB_LIST_SCENE_LAYER_H_ | 140 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TAB_LIST_SCENE_LAYER_H_ |
| OLD | NEW |