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

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

Issue 2363843002: [Contextual Search] Animate thumbnail appearance (Closed)
Patch Set: Changes from donnd@ review 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
« no previous file with comments | « chrome/android/java_sources.gni ('k') | chrome/browser/android/compositor/layer/contextual_search_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..388ca7c688e5b235c3deeafa3a92bc8ad206e9e2 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,20 @@ 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_;
+ float thumbnail_side_margin_;
+ float thumbnail_top_margin_;
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_;
« no previous file with comments | « chrome/android/java_sources.gni ('k') | chrome/browser/android/compositor/layer/contextual_search_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698