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

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

Issue 2801153003: [Contextual Search] Add a handle to the bar when Chrome Home is enabled (Closed)
Patch Set: Revert changes to OverlayPanelBase#initializeUiState() Created 3 years, 8 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/overlay_panel_layer.h
diff --git a/chrome/browser/android/compositor/layer/overlay_panel_layer.h b/chrome/browser/android/compositor/layer/overlay_panel_layer.h
index 147def75e0e1051fbe2edc23ef96e0750ce5a860..f842bd5b795822e4f320bd86fa73f7e3887d17dd 100644
--- a/chrome/browser/android/compositor/layer/overlay_panel_layer.h
+++ b/chrome/browser/android/compositor/layer/overlay_panel_layer.h
@@ -28,7 +28,8 @@ class OverlayPanelLayer : public Layer {
int panel_shadow_resource_id,
int bar_shadow_resource_id,
int panel_icon_resource_id,
- int close_icon_resource_id);
+ int close_icon_resource_id,
+ int handle_resource_id);
void SetProperties(float dp_to_px,
const scoped_refptr<cc::Layer>& content_layer,
@@ -45,7 +46,9 @@ class OverlayPanelLayer : public Layer {
float bar_border_height,
bool bar_shadow_visible,
float bar_shadow_opacity,
- float close_icon_opacity);
+ float close_icon_opacity,
+ float bar_handle_offset_y,
+ float bar_padding_bottom);
scoped_refptr<cc::Layer> layer() override;
@@ -68,12 +71,17 @@ class OverlayPanelLayer : public Layer {
scoped_refptr<cc::Layer> content_container_;
scoped_refptr<cc::Layer> text_container_;
scoped_refptr<cc::SolidColorLayer> bar_border_;
+ scoped_refptr<cc::UIResourceLayer> bar_handle_;
+ scoped_refptr<cc::Layer> bar_content_layer_;
int panel_icon_resource_id_;
int bar_text_resource_id_;
int panel_shadow_resource_id_;
int bar_shadow_resource_id_;
int close_icon_resource_id_;
+ int bar_handle_resource_id_;
+
+ int bar_content_height_;
};
} // namespace android

Powered by Google App Engine
This is Rietveld 408576698