Index: ash/common/shelf/overflow_bubble.h |
diff --git a/ash/common/shelf/overflow_bubble.h b/ash/common/shelf/overflow_bubble.h |
index 194c25ddb17b9bd964356886eb55a30838816cc8..b4a42ba5dbc9516a9eb91aeb749d6c0b7085d4ea 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::PointerDownWatcher, |
explicit OverflowBubble(WmShelf* wm_shelf); |
~OverflowBubble() override; |
- // Shows an bubble pointing to |anchor| with |shelf_view| as its content. |
+ // Shows an bubble pointing to |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(views::View* anchor, ShelfView* shelf_view); |
+ void Show(OverflowButton* 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_; } |
@@ -61,7 +59,7 @@ class OverflowBubble : public views::PointerDownWatcher, |
WmShelf* wm_shelf_; |
OverflowBubbleView* bubble_; // Owned by views hierarchy. |
- views::View* anchor_; // Owned by ShelfView. |
+ OverflowButton* button_; // Owned by ShelfView. |
ShelfView* shelf_view_; // Owned by |bubble_|. |
DISALLOW_COPY_AND_ASSIGN(OverflowBubble); |