Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: ash/system/tray/tray_bubble_wrapper.h

Issue 11028134: Re-factor Ash Message Center code part 2/4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698