| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_COMMON_SHELF_OVERFLOW_BUBBLE_H_ | 5 #ifndef ASH_COMMON_SHELF_OVERFLOW_BUBBLE_H_ |
| 6 #define ASH_COMMON_SHELF_OVERFLOW_BUBBLE_H_ | 6 #define ASH_COMMON_SHELF_OVERFLOW_BUBBLE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/views/pointer_watcher.h" | 9 #include "ui/views/pointer_watcher.h" |
| 10 #include "ui/views/widget/widget_observer.h" | 10 #include "ui/views/widget/widget_observer.h" |
| 11 | 11 |
| 12 namespace ui { | 12 namespace ui { |
| 13 class PointerEvent; | 13 class PointerEvent; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace views { | |
| 17 class View; | |
| 18 } | |
| 19 | |
| 20 namespace ash { | 16 namespace ash { |
| 21 class OverflowBubbleView; | 17 class OverflowBubbleView; |
| 22 class OverflowButton; | 18 class OverflowButton; |
| 23 class ShelfView; | 19 class ShelfView; |
| 24 class WmShelf; | 20 class WmShelf; |
| 25 | 21 |
| 26 // OverflowBubble shows shelf items that won't fit on the main shelf in a | 22 // OverflowBubble shows shelf items that won't fit on the main shelf in a |
| 27 // separate bubble. | 23 // separate bubble. |
| 28 class OverflowBubble : public views::PointerWatcher, | 24 class OverflowBubble : public views::PointerWatcher, |
| 29 public views::WidgetObserver { | 25 public views::WidgetObserver { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 60 | 56 |
| 61 // ShelfView containing the overflow items. Owned by |bubble_|. | 57 // ShelfView containing the overflow items. Owned by |bubble_|. |
| 62 ShelfView* shelf_view_; | 58 ShelfView* shelf_view_; |
| 63 | 59 |
| 64 DISALLOW_COPY_AND_ASSIGN(OverflowBubble); | 60 DISALLOW_COPY_AND_ASSIGN(OverflowBubble); |
| 65 }; | 61 }; |
| 66 | 62 |
| 67 } // namespace ash | 63 } // namespace ash |
| 68 | 64 |
| 69 #endif // ASH_COMMON_SHELF_OVERFLOW_BUBBLE_H_ | 65 #endif // ASH_COMMON_SHELF_OVERFLOW_BUBBLE_H_ |
| OLD | NEW |