OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TOOLBAR_SCENE_LAYER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TOOLBAR_SCENE_LAYER_H_ |
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TOOLBAR_SCENE_LAYER_H_ | 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TOOLBAR_SCENE_LAYER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 // Update the compositor version of the toolbar. | 32 // Update the compositor version of the toolbar. |
33 void UpdateToolbarLayer( | 33 void UpdateToolbarLayer( |
34 JNIEnv* env, | 34 JNIEnv* env, |
35 const base::android::JavaParamRef<jobject>& object, | 35 const base::android::JavaParamRef<jobject>& object, |
36 const base::android::JavaParamRef<jobject>& jresource_manager, | 36 const base::android::JavaParamRef<jobject>& jresource_manager, |
37 jint toolbar_resource_id, | 37 jint toolbar_resource_id, |
38 jint toolbar_background_color, | 38 jint toolbar_background_color, |
39 jint url_bar_resource_id, | 39 jint url_bar_resource_id, |
40 jfloat url_bar_alpha, | 40 jfloat url_bar_alpha, |
41 jfloat top_offset, | 41 jfloat top_offset, |
| 42 jfloat view_height, |
42 bool visible, | 43 bool visible, |
43 bool show_shadow); | 44 bool show_shadow); |
44 | 45 |
45 // Update the progress bar. | 46 // Update the progress bar. |
46 void UpdateProgressBar( | 47 void UpdateProgressBar( |
47 JNIEnv* env, | 48 JNIEnv* env, |
48 const base::android::JavaParamRef<jobject>& object, | 49 const base::android::JavaParamRef<jobject>& object, |
49 jint progress_bar_x, | 50 jint progress_bar_x, |
50 jint progress_bar_y, | 51 jint progress_bar_y, |
51 jint progress_bar_width, | 52 jint progress_bar_width, |
(...skipping 21 matching lines...) Expand all Loading... |
73 scoped_refptr<ToolbarLayer> toolbar_layer_; | 74 scoped_refptr<ToolbarLayer> toolbar_layer_; |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(ToolbarSceneLayer); | 76 DISALLOW_COPY_AND_ASSIGN(ToolbarSceneLayer); |
76 }; | 77 }; |
77 | 78 |
78 bool RegisterToolbarSceneLayer(JNIEnv* env); | 79 bool RegisterToolbarSceneLayer(JNIEnv* env); |
79 | 80 |
80 } // namespace android | 81 } // namespace android |
81 | 82 |
82 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TOOLBAR_SCENE_LAYER_H_ | 83 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TOOLBAR_SCENE_LAYER_H_ |
OLD | NEW |