| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 5 #ifndef ASH_LAUNCHER_OVERFLOW_BUBBLE_H_ |
| 6 #define ASH_LAUNCHER_OVERFLOW_BUBBLE_H_ |
| 7 |
| 8 #include "ash/wm/shelf_types.h" |
| 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" |
| 11 #include "ui/views/widget/widget.h" |
| 12 |
| 13 namespace views { |
| 14 class View; |
| 15 } |
| 16 |
| 17 namespace ash { |
| 18 |
| 19 class LauncherDelegate; |
| 20 class LauncherModel; |
| 21 |
| 22 namespace internal { |
| 23 |
| 24 class LauncherView; |
| 25 |
| 26 // OverflowBubble displays an overflow bubble. |
| 27 class OverflowBubble : public views::Widget::Observer { |
| 28 public: |
| 29 OverflowBubble(); |
| 30 virtual ~OverflowBubble(); |
| 31 |
| 32 void Show(LauncherDelegate* delegate, |
| 33 LauncherModel* model, |
| 34 views::View* anchor, |
| 35 ShelfAlignment shelf_alignment, |
| 36 int overflow_start_index); |
| 37 |
| 38 void Hide(); |
| 39 |
| 40 bool IsShowing() const { return !!bubble_; } |
| 41 |
| 42 private: |
| 43 // views::Widget::Observer overrides: |
| 44 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE; |
| 45 |
| 46 views::View* bubble_; // Owned by views hierarchy. |
| 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(OverflowBubble); |
| 49 }; |
| 50 |
| 51 } // namespace internal |
| 52 } // namespace ash |
| 53 |
| 54 #endif // ASH_LAUNCHER_OVERFLOW_BUBBLE_H_ |
| OLD | NEW |