| Index: ash/system/tray/system_tray_bubble.h
|
| diff --git a/ash/system/tray/system_tray_bubble.h b/ash/system/tray/system_tray_bubble.h
|
| index 2d0588cd3c6dcfd2f82f8b2ec1f14e899133d94f..c80601fb31ad9fcc0e32ec336b33dc0e9a7c4248 100644
|
| --- a/ash/system/tray/system_tray_bubble.h
|
| +++ b/ash/system/tray/system_tray_bubble.h
|
| @@ -68,6 +68,16 @@ class SystemTrayBubble : public views::Widget::Observer {
|
| ANCHOR_TYPE_BUBBLE
|
| };
|
|
|
| + struct InitParams {
|
| + InitParams(AnchorType anchor_type);
|
| +
|
| + views::View* anchor;
|
| + AnchorType anchor_type;
|
| + bool can_activate;
|
| + ash::user::LoginStatus login_status;
|
| + int arrow_offset;
|
| + };
|
| +
|
| SystemTrayBubble(ash::SystemTray* tray,
|
| const std::vector<ash::SystemTrayItem*>& items,
|
| BubbleType bubble_type);
|
| @@ -79,10 +89,7 @@ class SystemTrayBubble : public views::Widget::Observer {
|
|
|
| // Creates |bubble_view_| and a child views for each member of |items_|.
|
| // Also creates |bubble_widget_| and sets up animations.
|
| - void InitView(views::View* anchor,
|
| - AnchorType anchor_type,
|
| - bool can_activate,
|
| - ash::user::LoginStatus login_status);
|
| + void InitView(const InitParams& init_params);
|
|
|
| gfx::Rect GetAnchorRect() const;
|
|
|
|
|