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 #include "chrome/browser/android/compositor/scene_layer/contextual_search_scene_
layer.h" | 5 #include "chrome/browser/android/compositor/scene_layer/contextual_search_scene_
layer.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "chrome/browser/android/compositor/layer/contextual_search_layer.h" | 8 #include "chrome/browser/android/compositor/layer/contextual_search_layer.h" |
9 #include "content/public/browser/android/content_view_core.h" | 9 #include "content/public/browser/android/content_view_core.h" |
10 #include "jni/ContextualSearchSceneLayer_jni.h" | 10 #include "jni/ContextualSearchSceneLayer_jni.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 jfloat search_panel_height, | 44 jfloat search_panel_height, |
45 jfloat search_bar_margin_side, | 45 jfloat search_bar_margin_side, |
46 jfloat search_bar_height, | 46 jfloat search_bar_height, |
47 jfloat search_context_opacity, | 47 jfloat search_context_opacity, |
48 jfloat search_term_opacity, | 48 jfloat search_term_opacity, |
49 jboolean search_bar_border_visible, | 49 jboolean search_bar_border_visible, |
50 jfloat search_bar_border_y, | 50 jfloat search_bar_border_y, |
51 jfloat search_bar_border_height, | 51 jfloat search_bar_border_height, |
52 jboolean search_bar_shadow_visible, | 52 jboolean search_bar_shadow_visible, |
53 jfloat search_bar_shadow_opacity, | 53 jfloat search_bar_shadow_opacity, |
| 54 jfloat search_provider_icon_sprite_size, |
| 55 jint search_provider_icon_sprite_frame, |
54 jfloat arrow_icon_opacity, | 56 jfloat arrow_icon_opacity, |
55 jfloat arrow_icon_rotation, | 57 jfloat arrow_icon_rotation, |
56 jboolean close_icon_visible, | 58 jboolean close_icon_visible, |
57 jfloat close_icon_opacity, | 59 jfloat close_icon_opacity, |
58 jboolean progress_bar_visible, | 60 jboolean progress_bar_visible, |
59 jfloat progress_bar_y, | 61 jfloat progress_bar_y, |
60 jfloat progress_bar_height, | 62 jfloat progress_bar_height, |
61 jfloat progress_bar_opacity, | 63 jfloat progress_bar_opacity, |
62 jint progress_bar_completion, | 64 jint progress_bar_completion, |
63 jobject jresource_manager) { | 65 jobject jresource_manager) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 search_panel_height, | 103 search_panel_height, |
102 search_bar_margin_side, | 104 search_bar_margin_side, |
103 search_bar_height, | 105 search_bar_height, |
104 search_context_opacity, | 106 search_context_opacity, |
105 search_term_opacity, | 107 search_term_opacity, |
106 search_bar_border_visible, | 108 search_bar_border_visible, |
107 search_bar_border_y, | 109 search_bar_border_y, |
108 search_bar_border_height, | 110 search_bar_border_height, |
109 search_bar_shadow_visible, | 111 search_bar_shadow_visible, |
110 search_bar_shadow_opacity, | 112 search_bar_shadow_opacity, |
| 113 search_provider_icon_sprite_size, |
| 114 search_provider_icon_sprite_frame, |
111 arrow_icon_opacity, | 115 arrow_icon_opacity, |
112 arrow_icon_rotation, | 116 arrow_icon_rotation, |
113 close_icon_visible, | 117 close_icon_visible, |
114 close_icon_opacity, | 118 close_icon_opacity, |
115 progress_bar_visible, | 119 progress_bar_visible, |
116 progress_bar_y, | 120 progress_bar_y, |
117 progress_bar_height, | 121 progress_bar_height, |
118 progress_bar_opacity, | 122 progress_bar_opacity, |
119 progress_bar_completion); | 123 progress_bar_completion); |
120 } | 124 } |
121 | 125 |
122 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& jobj) { | 126 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& jobj) { |
123 // This will automatically bind to the Java object and pass ownership there. | 127 // This will automatically bind to the Java object and pass ownership there. |
124 ContextualSearchSceneLayer* tree_provider = | 128 ContextualSearchSceneLayer* tree_provider = |
125 new ContextualSearchSceneLayer(env, jobj); | 129 new ContextualSearchSceneLayer(env, jobj); |
126 return reinterpret_cast<intptr_t>(tree_provider); | 130 return reinterpret_cast<intptr_t>(tree_provider); |
127 } | 131 } |
128 | 132 |
129 bool RegisterContextualSearchSceneLayer(JNIEnv* env) { | 133 bool RegisterContextualSearchSceneLayer(JNIEnv* env) { |
130 return RegisterNativesImpl(env); | 134 return RegisterNativesImpl(env); |
131 } | 135 } |
132 | 136 |
133 } // namespace android | 137 } // namespace android |
134 } // namespace chrome | 138 } // namespace chrome |
OLD | NEW |