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

Unified Diff: ui/app_list/views/search_box_view.h

Issue 889593003: Animate the app list search box shadow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_animations
Patch Set: Created 5 years, 10 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: ui/app_list/views/search_box_view.h
diff --git a/ui/app_list/views/search_box_view.h b/ui/app_list/views/search_box_view.h
index b141da6d1167730649be046b654a9fc7f2ff307a..359b3d20a58dcd588fc66f902352dcb41ff685df 100644
--- a/ui/app_list/views/search_box_view.h
+++ b/ui/app_list/views/search_box_view.h
@@ -9,6 +9,7 @@
#include "ui/app_list/search_box_model_observer.h"
#include "ui/app_list/speech_ui_model_observer.h"
+#include "ui/gfx/shadow_value.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/button/menu_button_listener.h"
#include "ui/views/controls/textfield/textfield_controller.h"
@@ -48,6 +49,9 @@ class APP_LIST_EXPORT SearchBoxView : public views::View,
void ClearSearch();
void InvalidateMenu();
+ // Sets the shadow border of the search box.
+ void SetShadow(const gfx::ShadowValue& shadow);
+
// Returns the bounds to use for the view (including the shadow) given the
// desired bounds of the search box contents.
gfx::Rect GetViewBoundsForSearchBoxContentsBounds(
@@ -65,6 +69,9 @@ class APP_LIST_EXPORT SearchBoxView : public views::View,
bool OnMouseWheel(const ui::MouseWheelEvent& event) override;
void OnEnabledChanged() override;
+ // Returns the shadow values for the search box at |z_height|.
+ static gfx::ShadowValue GetShadowForZHeight(int z_height);
+
private:
// Updates model text and selection model with current Textfield info.
void UpdateModel();

Powered by Google App Engine
This is Rietveld 408576698