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

Unified Diff: ash/common/shelf/overflow_bubble.h

Issue 2178163002: Add ink drop ripple to shelf overflow button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments Created 4 years, 3 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 | « no previous file | ash/common/shelf/overflow_bubble.cc » ('j') | ash/shelf/shelf_view_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/overflow_bubble.h
diff --git a/ash/common/shelf/overflow_bubble.h b/ash/common/shelf/overflow_bubble.h
index b806a55547eb3894e90b63cb774920e082db0fff..d8d14661b0f2af43b56eb2625b0c357563572ccf 100644
--- a/ash/common/shelf/overflow_bubble.h
+++ b/ash/common/shelf/overflow_bubble.h
@@ -19,6 +19,7 @@ class View;
namespace ash {
class OverflowBubbleView;
+class OverflowButton;
class ShelfView;
class WmShelf;
@@ -31,16 +32,13 @@ class OverflowBubble : public views::PointerWatcher,
explicit OverflowBubble(WmShelf* wm_shelf);
~OverflowBubble() override;
- // Shows an bubble pointing to |anchor| with |shelf_view| as its content.
- // This |shelf_view| is different than the main shelf's view and only contains
- // the overflow items.
- void Show(views::View* anchor, ShelfView* shelf_view);
+ // Shows an bubble pointing to |overflow_button| with |shelf_view| as its
+ // content. This |shelf_view| is different than the main shelf's view and
+ // only contains the overflow items.
+ void Show(OverflowButton* overflow_button, ShelfView* shelf_view);
void Hide();
- // Hides the bubble and schedules paint for overflow button.
- void HideBubbleAndRefreshButton();
-
bool IsShowing() const { return !!bubble_; }
ShelfView* shelf_view() { return shelf_view_; }
OverflowBubbleView* bubble_view() { return bubble_; }
@@ -57,8 +55,8 @@ class OverflowBubble : public views::PointerWatcher,
void OnWidgetDestroying(views::Widget* widget) override;
WmShelf* wm_shelf_;
- OverflowBubbleView* bubble_; // Owned by views hierarchy.
- views::View* anchor_; // Owned by ShelfView.
+ OverflowBubbleView* bubble_; // Owned by views hierarchy.
+ OverflowButton* overflow_button_; // Owned by ShelfView.
// ShelfView containing the overflow items. Owned by |bubble_|.
ShelfView* shelf_view_;
« no previous file with comments | « no previous file | ash/common/shelf/overflow_bubble.cc » ('j') | ash/shelf/shelf_view_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698