blob: 5d5e747885310005412752bcd699cf297974707f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_LAUNCHER_OVERFLOW_BUBBLE_H_
#define ASH_LAUNCHER_OVERFLOW_BUBBLE_H_
#include "ash/shelf_types.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "ui/views/widget/widget_observer.h"
namespace views {
class View;
}
namespace ash {
class LauncherDelegate;
class LauncherModel;
namespace internal {
class LauncherView;
// OverflowBubble displays an overflow bubble.
class OverflowBubble : public views::WidgetObserver {
public:
OverflowBubble();
virtual ~OverflowBubble();
void Show(LauncherDelegate* delegate,
LauncherModel* model,
views::View* anchor,
ShelfAlignment shelf_alignment,
int overflow_start_index);
void Hide();
bool IsShowing() const { return !!bubble_; }
private:
// Overridden from views::WidgetObserver:
virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE;
views::View* bubble_; // Owned by views hierarchy.
DISALLOW_COPY_AND_ASSIGN(OverflowBubble);
};
} // namespace internal
} // namespace ash
#endif // ASH_LAUNCHER_OVERFLOW_BUBBLE_H_
|