1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ASH_LAUNCHER_OVERFLOW_BUBBLE_H_
6 #define ASH_LAUNCHER_OVERFLOW_BUBBLE_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/views/widget/widget_observer.h"
18 class LauncherDelegate
;
25 // OverflowBubble displays the overflown launcher items in a bubble.
26 class OverflowBubble
: public views::WidgetObserver
{
29 virtual ~OverflowBubble();
31 void Show(LauncherDelegate
* delegate
,
34 int overflow_start_index
);
38 bool IsShowing() const { return !!bubble_
; }
41 // Overridden from views::WidgetObserver:
42 virtual void OnWidgetClosing(views::Widget
* widget
) OVERRIDE
;
44 views::View
* bubble_
; // Owned by views hierarchy.
46 DISALLOW_COPY_AND_ASSIGN(OverflowBubble
);
49 } // namespace internal
52 #endif // ASH_LAUNCHER_OVERFLOW_BUBBLE_H_