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

Unified Diff: ash/test/shelf_view_test_api.cc

Issue 2033553003: Add MD ink drop ripple to shelf app items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added tests 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
Index: ash/test/shelf_view_test_api.cc
diff --git a/ash/test/shelf_view_test_api.cc b/ash/test/shelf_view_test_api.cc
index f8c0754c2aa9ae0cd6d4c2d976af25c9737a60f1..34ca20c8d545c9567f5b05136d9f1427a411975a 100644
--- a/ash/test/shelf_view_test_api.cc
+++ b/ash/test/shelf_view_test_api.cc
@@ -11,6 +11,7 @@
#include "ash/shelf/shelf_view.h"
#include "base/message_loop/message_loop.h"
#include "ui/views/animation/bounds_animator.h"
+#include "ui/views/controls/menu/menu_runner.h"
#include "ui/views/view_model.h"
namespace {
@@ -98,6 +99,13 @@ void ShelfViewTestAPI::RunMessageLoopUntilAnimationsDone() {
shelf_view_->bounds_animator_->RemoveObserver(observer.get());
}
+void ShelfViewTestAPI::CloseMenu() {
+ if (!shelf_view_->launcher_menu_runner_)
+ return;
+
+ shelf_view_->launcher_menu_runner_->Cancel();
+}
+
OverflowBubble* ShelfViewTestAPI::overflow_bubble() {
return shelf_view_->overflow_bubble_.get();
}
@@ -119,8 +127,9 @@ int ShelfViewTestAPI::GetButtonSpacing() {
}
void ShelfViewTestAPI::ButtonPressed(views::Button* sender,
- const ui::Event& event) {
- return shelf_view_->ButtonPressed(sender, event);
+ const ui::Event& event,
+ views::InkDrop* ink_drop) {
+ return shelf_view_->ButtonPressed(sender, event, ink_drop);
}
bool ShelfViewTestAPI::SameDragType(ShelfItemType typea,

Powered by Google App Engine
This is Rietveld 408576698