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

Unified Diff: chrome/browser/android/compositor/layer/contextual_search_layer.h

Issue 2363843002: [Contextual Search] Animate thumbnail appearance (Closed)
Patch Set: [Contextual Search] Animate thumbnail appearance Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/compositor/layer/contextual_search_layer.h
diff --git a/chrome/browser/android/compositor/layer/contextual_search_layer.h b/chrome/browser/android/compositor/layer/contextual_search_layer.h
index d56a1a9712acd1751dfa5772f08ceed457336a7e..39ae6fe6b1fa8d9ab6040a431bcf4509e299f001 100644
--- a/chrome/browser/android/compositor/layer/contextual_search_layer.h
+++ b/chrome/browser/android/compositor/layer/contextual_search_layer.h
@@ -76,6 +76,7 @@ class ContextualSearchLayer : public OverlayPanelLayer {
bool search_provider_icon_sprite_visible,
float search_provider_icon_sprite_completion_percentage,
bool thumbnail_visible,
+ float thumbnail_visibility_percentage,
int thumbnail_size,
float arrow_icon_opacity,
float arrow_icon_rotation,
@@ -93,13 +94,18 @@ class ContextualSearchLayer : public OverlayPanelLayer {
scoped_refptr<cc::Layer> GetIconLayer() override;
private:
- bool search_provider_icon_sprite_visible_;
- int search_provider_icon_sprite_metadata_resource_id_;
- float search_provider_icon_sprite_completion_percentage_;
- bool thumbnail_visible_;
+ // Sets up |icon_layer_|, which displays an icon or thumbnail at the start
+ // of the Bar.
+ void SetupIconLayer(bool search_provider_icon_sprite_visible,
+ int search_provider_icon_sprite_metadata_resource_id,
+ float search_provider_icon_sprite_completion_percentage,
+ bool thumbnail_visible,
+ float thumbnail_visibility_percentage);
+
int thumbnail_size_;
scoped_refptr<cc::UIResourceLayer> search_context_;
+ scoped_refptr<cc::Layer> icon_layer_;
scoped_refptr<CrushedSpriteLayer> search_provider_icon_sprite_;
scoped_refptr<cc::UIResourceLayer> thumbnail_layer_;
scoped_refptr<cc::UIResourceLayer> arrow_icon_;

Powered by Google App Engine
This is Rietveld 408576698