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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // Update the compositor version of the toolbar. | 31 // Update the compositor version of the toolbar. |
32 void UpdateToolbarLayer( | 32 void UpdateToolbarLayer( |
33 JNIEnv* env, | 33 JNIEnv* env, |
34 const base::android::JavaParamRef<jobject>& object, | 34 const base::android::JavaParamRef<jobject>& object, |
35 const base::android::JavaParamRef<jobject>& jresource_manager, | 35 const base::android::JavaParamRef<jobject>& jresource_manager, |
36 jint toolbar_resource_id, | 36 jint toolbar_resource_id, |
37 jint toolbar_background_color, | 37 jint toolbar_background_color, |
38 jint url_bar_resource_id, | 38 jint url_bar_resource_id, |
39 jfloat url_bar_alpha, | 39 jfloat url_bar_alpha, |
40 jfloat top_offset, | 40 jfloat y_offset, |
41 jfloat view_height, | 41 jfloat view_height, |
42 bool visible, | 42 bool visible, |
43 bool show_shadow, | 43 bool show_shadow, |
44 bool browser_controls_at_bottom); | 44 bool browser_controls_at_bottom); |
45 | 45 |
46 // Update the progress bar. | 46 // Update the progress bar. |
47 void UpdateProgressBar( | 47 void UpdateProgressBar( |
48 JNIEnv* env, | 48 JNIEnv* env, |
49 const base::android::JavaParamRef<jobject>& object, | 49 const base::android::JavaParamRef<jobject>& object, |
50 jint progress_bar_x, | 50 jint progress_bar_x, |
(...skipping 23 matching lines...) Expand all Loading... |
74 scoped_refptr<ToolbarLayer> toolbar_layer_; | 74 scoped_refptr<ToolbarLayer> toolbar_layer_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(ToolbarSceneLayer); | 76 DISALLOW_COPY_AND_ASSIGN(ToolbarSceneLayer); |
77 }; | 77 }; |
78 | 78 |
79 bool RegisterToolbarSceneLayer(JNIEnv* env); | 79 bool RegisterToolbarSceneLayer(JNIEnv* env); |
80 | 80 |
81 } // namespace android | 81 } // namespace android |
82 | 82 |
83 #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 |