Chromium Code Reviews| 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 namespace ash { | |
| 13 | |
| 14 class TrayBubbleView; | |
| 15 | |
| 16 namespace internal { | |
| 17 | |
| 18 class TrayBackgroundView; | |
| 19 class TrayEventFilter; | |
| 20 | |
| 21 // Creates and manages thes withe Widget and EventFilter components of a bubble. | |
|
jennyz
2012/10/12 23:05:34
"thes withe"->"the"?
stevenjb
2012/10/12 23:41:50
Done.
| |
| 22 | |
| 23 class TrayBubbleWrapper : public views::WidgetObserver { | |
| 24 public: | |
| 25 TrayBubbleWrapper(TrayBackgroundView* tray, TrayBubbleView* bubble_view); | |
| 26 virtual ~TrayBubbleWrapper(); | |
| 27 | |
| 28 // views::WidgetObserver overrides: | |
| 29 void OnWidgetClosing(views::Widget* widget); | |
| 30 | |
| 31 TrayBackgroundView* tray() { return tray_; } | |
| 32 TrayBubbleView* bubble_view() { return bubble_view_; } | |
| 33 views::Widget* bubble_widget() { return bubble_widget_; } | |
| 34 | |
| 35 private: | |
| 36 TrayBackgroundView* tray_; | |
| 37 TrayBubbleView* bubble_view_; // unowned | |
| 38 views::Widget* bubble_widget_; | |
| 39 scoped_ptr<TrayEventFilter> tray_event_filter_; | |
| 40 | |
| 41 DISALLOW_COPY_AND_ASSIGN(TrayBubbleWrapper); | |
| 42 }; | |
| 43 | |
| 44 } // namespace internal | |
| 45 } // namespace ash | |
| 46 | |
| 47 #endif // ASH_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_ | |
| OLD | NEW |