Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.h

Issue 1219133003: Contextual Search UI changes for custom tabs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use fadingInPercentage and fadingOutPercentage, get rid of PanelBase#isCloseIconVisible() Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_CONTEXTUAL_SEARCH_SCENE_LA YER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_CONTEXTUAL_SEARCH_SCENE_LA YER_H_
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_CONTEXTUAL_SEARCH_SCENE_LA YER_H_ 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_CONTEXTUAL_SEARCH_SCENE_LA YER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 14 matching lines...) Expand all
25 ~ContextualSearchSceneLayer() override; 25 ~ContextualSearchSceneLayer() override;
26 26
27 void UpdateContextualSearchLayer(JNIEnv* env, 27 void UpdateContextualSearchLayer(JNIEnv* env,
28 jobject object, 28 jobject object,
29 jint search_bar_background_resource_id, 29 jint search_bar_background_resource_id,
30 jint search_bar_text_resource_id, 30 jint search_bar_text_resource_id,
31 jint search_bar_shadow_resource_id, 31 jint search_bar_shadow_resource_id,
32 jint search_provider_icon_resource_id, 32 jint search_provider_icon_resource_id,
33 jint search_icon_resource_id, 33 jint search_icon_resource_id,
34 jint arrow_up_resource_id, 34 jint arrow_up_resource_id,
35 jint close_icon_resource_id,
35 jint progress_bar_background_resource_id, 36 jint progress_bar_background_resource_id,
36 jint progress_bar_resource_id, 37 jint progress_bar_resource_id,
37 jint search_promo_resource_id, 38 jint search_promo_resource_id,
38 jobject jcontent_view_core, 39 jobject jcontent_view_core,
39 jboolean search_promo_visible, 40 jboolean search_promo_visible,
40 jfloat search_promo_height, 41 jfloat search_promo_height,
41 jfloat search_promo_opacity, 42 jfloat search_promo_opacity,
42 jfloat search_panel_y, 43 jfloat search_panel_y,
43 jfloat search_panel_width, 44 jfloat search_panel_width,
44 jfloat search_bar_margin_top, 45 jfloat search_bar_margin_top,
45 jfloat search_bar_margin_side, 46 jfloat search_bar_margin_side,
46 jfloat search_bar_height, 47 jfloat search_bar_height,
47 jfloat search_bar_text_opacity, 48 jfloat search_bar_text_opacity,
48 jboolean search_bar_border_visible, 49 jboolean search_bar_border_visible,
49 jfloat search_bar_border_y, 50 jfloat search_bar_border_y,
50 jfloat search_bar_border_height, 51 jfloat search_bar_border_height,
51 jboolean search_bar_shadow_visible, 52 jboolean search_bar_shadow_visible,
52 jfloat search_bar_shadow_opacity, 53 jfloat search_bar_shadow_opacity,
53 jboolean side_search_provider_icon_visible, 54 jboolean side_search_provider_icon_visible,
54 jfloat search_provider_icon_opacity, 55 jfloat search_provider_icon_opacity,
55 jboolean search_icon_visible, 56 jboolean search_icon_visible,
56 jfloat search_icon_opacity, 57 jfloat search_icon_opacity,
57 jboolean arrow_icon_visible, 58 jboolean arrow_icon_visible,
58 jfloat arrow_icon_opacity, 59 jfloat arrow_icon_opacity,
59 jfloat arrow_icon_rotation, 60 jfloat arrow_icon_rotation,
61 jboolean close_icon_visible,
62 jfloat close_icon_opacity,
60 jboolean progress_bar_visible, 63 jboolean progress_bar_visible,
61 jfloat progress_bar_y, 64 jfloat progress_bar_y,
62 jfloat progress_bar_height, 65 jfloat progress_bar_height,
63 jfloat progress_bar_opacity, 66 jfloat progress_bar_opacity,
64 jint progress_bar_completion, 67 jint progress_bar_completion,
65 jobject jresource_manager); 68 jobject jresource_manager);
66 69
67 private: 70 private:
68 scoped_refptr<ContextualSearchLayer> contextual_search_layer_; 71 scoped_refptr<ContextualSearchLayer> contextual_search_layer_;
69 72
70 DISALLOW_COPY_AND_ASSIGN(ContextualSearchSceneLayer); 73 DISALLOW_COPY_AND_ASSIGN(ContextualSearchSceneLayer);
71 }; 74 };
72 75
73 bool RegisterContextualSearchSceneLayer(JNIEnv* env); 76 bool RegisterContextualSearchSceneLayer(JNIEnv* env);
74 77
75 } // namespace android 78 } // namespace android
76 } // namespace chrome 79 } // namespace chrome
77 80
78 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_CONTEXTUAL_SEARCH_SCENE _LAYER_H_ 81 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_CONTEXTUAL_SEARCH_SCENE _LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698