| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_LAYER_CONTEXTUAL_SEARCH_LAYER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_CONTEXTUAL_SEARCH_LAYER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_CONTEXTUAL_SEARCH_LAYER_H_ | 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_CONTEXTUAL_SEARCH_LAYER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/android/compositor/layer/layer.h" | 10 #include "chrome/browser/android/compositor/layer/layer.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 void SetProperties(int panel_shadow_resource_id, | 35 void SetProperties(int panel_shadow_resource_id, |
| 36 int search_context_resource_id, | 36 int search_context_resource_id, |
| 37 int search_term_resource_id, | 37 int search_term_resource_id, |
| 38 int search_bar_shadow_resource_id, | 38 int search_bar_shadow_resource_id, |
| 39 int search_provider_icon_resource_id, | 39 int search_provider_icon_resource_id, |
| 40 int arrow_up_resource_id, | 40 int arrow_up_resource_id, |
| 41 int close_icon_resource_id, | 41 int close_icon_resource_id, |
| 42 int progress_bar_background_resource_id, | 42 int progress_bar_background_resource_id, |
| 43 int progress_bar_resource_id, | 43 int progress_bar_resource_id, |
| 44 int search_promo_resource_id, | 44 int search_promo_resource_id, |
| 45 int peek_promo_ripple_resource_id, |
| 46 int peek_promo_text_resource_id, |
| 45 content::ContentViewCore* content_view_core, | 47 content::ContentViewCore* content_view_core, |
| 46 bool search_promo_visible, | 48 bool search_promo_visible, |
| 47 float search_promo_height, | 49 float search_promo_height, |
| 48 float search_promo_opacity, | 50 float search_promo_opacity, |
| 51 bool search_peek_promo_visible, |
| 52 float search_peek_promo_height, |
| 53 float search_peek_promo_padding, |
| 54 float search_peek_promo_ripple_width, |
| 55 float search_peek_promo_ripple_opacity, |
| 56 float search_peek_promo_text_opacity, |
| 49 float search_panel_x, | 57 float search_panel_x, |
| 50 float search_panel_y, | 58 float search_panel_y, |
| 51 float search_panel_width, | 59 float search_panel_width, |
| 52 float search_panel_height, | 60 float search_panel_height, |
| 53 float search_bar_margin_side, | 61 float search_bar_margin_side, |
| 54 float search_bar_height, | 62 float search_bar_height, |
| 55 float search_context_opacity, | 63 float search_context_opacity, |
| 56 float search_term_opacity, | 64 float search_term_opacity, |
| 57 bool search_bar_border_visible, | 65 bool search_bar_border_visible, |
| 58 float search_bar_border_y, | |
| 59 float search_bar_border_height, | 66 float search_bar_border_height, |
| 60 bool search_bar_shadow_visible, | 67 bool search_bar_shadow_visible, |
| 61 float search_bar_shadow_opacity, | 68 float search_bar_shadow_opacity, |
| 62 float arrow_icon_opacity, | 69 float arrow_icon_opacity, |
| 63 float arrow_icon_rotation, | 70 float arrow_icon_rotation, |
| 64 float close_icon_opacity, | 71 float close_icon_opacity, |
| 65 bool progress_bar_visible, | 72 bool progress_bar_visible, |
| 66 float progress_bar_y, | |
| 67 float progress_bar_height, | 73 float progress_bar_height, |
| 68 float progress_bar_opacity, | 74 float progress_bar_opacity, |
| 69 int progress_bar_completion); | 75 int progress_bar_completion); |
| 70 | 76 |
| 71 scoped_refptr<cc::Layer> layer() override; | 77 scoped_refptr<cc::Layer> layer() override; |
| 72 | 78 |
| 73 protected: | 79 protected: |
| 74 explicit ContextualSearchLayer(ui::ResourceManager* resource_manager); | 80 explicit ContextualSearchLayer(ui::ResourceManager* resource_manager); |
| 75 ~ContextualSearchLayer() override; | 81 ~ContextualSearchLayer() override; |
| 76 | 82 |
| 77 private: | 83 private: |
| 78 ui::ResourceManager* resource_manager_; | 84 ui::ResourceManager* resource_manager_; |
| 79 | 85 |
| 80 scoped_refptr<cc::Layer> layer_; | 86 scoped_refptr<cc::Layer> layer_; |
| 81 scoped_refptr<cc::NinePatchLayer> panel_shadow_; | 87 scoped_refptr<cc::NinePatchLayer> panel_shadow_; |
| 82 scoped_refptr<cc::SolidColorLayer> search_bar_background_; | 88 scoped_refptr<cc::SolidColorLayer> search_bar_background_; |
| 83 scoped_refptr<cc::UIResourceLayer> search_context_; | 89 scoped_refptr<cc::UIResourceLayer> search_context_; |
| 84 scoped_refptr<cc::UIResourceLayer> search_term_; | 90 scoped_refptr<cc::UIResourceLayer> search_term_; |
| 85 scoped_refptr<cc::UIResourceLayer> search_bar_shadow_; | 91 scoped_refptr<cc::UIResourceLayer> search_bar_shadow_; |
| 86 scoped_refptr<cc::UIResourceLayer> search_provider_icon_; | 92 scoped_refptr<cc::UIResourceLayer> search_provider_icon_; |
| 87 scoped_refptr<cc::UIResourceLayer> arrow_icon_; | 93 scoped_refptr<cc::UIResourceLayer> arrow_icon_; |
| 88 scoped_refptr<cc::UIResourceLayer> close_icon_; | 94 scoped_refptr<cc::UIResourceLayer> close_icon_; |
| 89 scoped_refptr<cc::Layer> content_view_container_; | 95 scoped_refptr<cc::Layer> content_view_container_; |
| 90 scoped_refptr<cc::SolidColorLayer> search_bar_border_; | 96 scoped_refptr<cc::SolidColorLayer> search_bar_border_; |
| 91 scoped_refptr<cc::NinePatchLayer> progress_bar_; | 97 scoped_refptr<cc::NinePatchLayer> progress_bar_; |
| 92 scoped_refptr<cc::NinePatchLayer> progress_bar_background_; | 98 scoped_refptr<cc::NinePatchLayer> progress_bar_background_; |
| 93 scoped_refptr<cc::UIResourceLayer> search_promo_; | 99 scoped_refptr<cc::UIResourceLayer> search_promo_; |
| 94 scoped_refptr<cc::SolidColorLayer> search_promo_container_; | 100 scoped_refptr<cc::SolidColorLayer> search_promo_container_; |
| 101 |
| 102 scoped_refptr<cc::SolidColorLayer> peek_promo_container_; |
| 103 scoped_refptr<cc::NinePatchLayer> peek_promo_ripple_; |
| 104 scoped_refptr<cc::UIResourceLayer> peek_promo_text_; |
| 95 }; | 105 }; |
| 96 | 106 |
| 97 } // namespace android | 107 } // namespace android |
| 98 } // namespace chrome | 108 } // namespace chrome |
| 99 | 109 |
| 100 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_CONTEXTUAL_SEARCH_LAYER_H_ | 110 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_CONTEXTUAL_SEARCH_LAYER_H_ |
| OLD | NEW |