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

Unified Diff: ash/test/shelf_view_test_api.h

Issue 2033553003: Add MD ink drop ripple to shelf app items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed TODO Created 4 years, 6 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 | « ash/shelf/shelf_view_unittest.cc ('k') | ash/test/shelf_view_test_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/shelf_view_test_api.h
diff --git a/ash/test/shelf_view_test_api.h b/ash/test/shelf_view_test_api.h
index acb4e40149ff7966174f4331e92a61f28400ff4f..445088bbe2cd1edf53f98517204fe1d47d616bc3 100644
--- a/ash/test/shelf_view_test_api.h
+++ b/ash/test/shelf_view_test_api.h
@@ -20,6 +20,7 @@ class Event;
namespace views {
class Button;
+class InkDrop;
}
namespace ash {
@@ -66,6 +67,9 @@ class ShelfViewTestAPI {
// Runs message loop and waits until all add/remove animations are done.
void RunMessageLoopUntilAnimationsDone();
+ // Closes the app list or context menu if it is running.
+ void CloseMenu();
+
// An accessor for |shelf_view|.
ShelfView* shelf_view() { return shelf_view_; }
@@ -84,8 +88,13 @@ class ShelfViewTestAPI {
// Returns the button space size.
int GetButtonSpacing();
+ // Returns minimum distance before drag starts.
+ int GetMinimumDragDistance() const;
+
// Wrapper for ShelfView::ButtonPressed.
- void ButtonPressed(views::Button* sender, const ui::Event& event);
+ void ButtonPressed(views::Button* sender,
+ const ui::Event& event,
+ views::InkDrop* ink_drop);
// Wrapper for ShelfView::SameDragType.
bool SameDragType(ShelfItemType typea, ShelfItemType typeb) const;
« no previous file with comments | « ash/shelf/shelf_view_unittest.cc ('k') | ash/test/shelf_view_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698