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

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

Issue 1536623003: [Contextual Search] Keep Panel upon orientation change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Changwan's comments Created 5 years 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/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java ('k') | no next file » | 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.cc
diff --git a/chrome/browser/android/compositor/layer/contextual_search_layer.cc b/chrome/browser/android/compositor/layer/contextual_search_layer.cc
index cafbcb8cc88d136943b3e8291ae1326f8c8799c4..b4fea99e818cc701d0bfc0b0bfefbbff20397879 100644
--- a/chrome/browser/android/compositor/layer/contextual_search_layer.cc
+++ b/chrome/browser/android/compositor/layer/contextual_search_layer.cc
@@ -455,6 +455,8 @@ void ContextualSearchLayer::SetProperties(
// ---------------------------------------------------------------------------
content_view_container_->SetPosition(
gfx::PointF(0.f, search_bar_bottom + search_promo_height));
+ content_view_container_->SetBounds(
+ gfx::Size(search_panel_width, search_panel_height));
if (content_view_core && content_view_core->GetLayer().get()) {
scoped_refptr<cc::Layer> content_view_layer = content_view_core->GetLayer();
if (content_view_layer->parent() != content_view_container_)
@@ -590,7 +592,7 @@ ContextualSearchLayer::ContextualSearchLayer(
close_icon_(
cc::UIResourceLayer::Create(content::Compositor::LayerSettings())),
content_view_container_(
- cc::Layer::Create(content::Compositor::LayerSettings())),
+ cc::SolidColorLayer::Create(content::Compositor::LayerSettings())),
search_bar_border_(
cc::SolidColorLayer::Create(content::Compositor::LayerSettings())),
progress_bar_(
@@ -664,6 +666,8 @@ ContextualSearchLayer::ContextualSearchLayer(
progress_bar_->SetFillCenter(true);
// Search Content View Container
+ content_view_container_->SetIsDrawable(true);
+ content_view_container_->SetBackgroundColor(kSearchBarBackgroundColor);
layer_->AddChild(content_view_container_);
// Search Bar Shadow
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698