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_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_ |
| 6 #define ASH_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ui/views/widget/widget_observer.h" |
| 11 |
| 12 class TrayBubbleView; |
| 13 |
| 14 namespace ash { |
| 15 namespace internal { |
| 16 |
| 17 class TrayBackgroundView; |
| 18 class TrayEventFilter; |
| 19 |
| 20 class TrayBubbleWrapper : public views::WidgetObserver { |
| 21 public: |
| 22 TrayBubbleWrapper(TrayBackgroundView* tray, TrayBubbleView* bubble_view); |
| 23 virtual ~TrayBubbleWrapper(); |
| 24 |
| 25 // views::WidgetObserver overrides: |
| 26 void OnWidgetClosing(views::Widget* widget); |
| 27 |
| 28 TrayBackgroundView* tray() { return tray_; } |
| 29 TrayBubbleView* bubble_view() { return bubble_view_; } |
| 30 views::Widget* bubble_widget() { return bubble_widget_; } |
| 31 |
| 32 private: |
| 33 TrayBackgroundView* tray_; |
| 34 TrayBubbleView* bubble_view_; // unowned |
| 35 views::Widget* bubble_widget_; |
| 36 scoped_ptr<TrayEventFilter> tray_event_filter_; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(TrayBubbleWrapper); |
| 39 }; |
| 40 |
| 41 } // namespace internal |
| 42 } // namespace ash |
| 43 |
| 44 #endif // ASH_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_ |
OLD | NEW |