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

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

Issue 11229022: Move ash/system/web_notification message_center to ui/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again. Created 8 years, 1 month 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
« no previous file with comments | « ash/system/tray/tray_bubble_view.cc ('k') | ash/system/tray/tray_bubble_wrapper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_ 5 #ifndef ASH_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_
6 #define ASH_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_ 6 #define ASH_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/views/widget/widget_observer.h" 10 #include "ui/views/widget/widget_observer.h"
11 11
12 namespace message_center { 12 namespace views {
13 class TrayBubbleView; 13 class TrayBubbleView;
14 } 14 }
15 15
16 namespace ash { 16 namespace ash {
17 namespace internal { 17 namespace internal {
18 18
19 class TrayBackgroundView; 19 class TrayBackgroundView;
20 class TrayEventFilter; 20 class TrayEventFilter;
21 21
22 // Creates and manages the Widget and EventFilter components of a bubble. 22 // Creates and manages the Widget and EventFilter components of a bubble.
23 23
24 class TrayBubbleWrapper : public views::WidgetObserver { 24 class TrayBubbleWrapper : public views::WidgetObserver {
25 public: 25 public:
26 TrayBubbleWrapper(TrayBackgroundView* tray, 26 TrayBubbleWrapper(TrayBackgroundView* tray,
27 message_center::TrayBubbleView* bubble_view); 27 views::TrayBubbleView* bubble_view);
28 virtual ~TrayBubbleWrapper(); 28 virtual ~TrayBubbleWrapper();
29 29
30 // views::WidgetObserver overrides: 30 // views::WidgetObserver overrides:
31 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE; 31 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE;
32 32
33 TrayBackgroundView* tray() { return tray_; } 33 TrayBackgroundView* tray() { return tray_; }
34 message_center::TrayBubbleView* bubble_view() { return bubble_view_; } 34 views::TrayBubbleView* bubble_view() { return bubble_view_; }
35 views::Widget* bubble_widget() { return bubble_widget_; } 35 views::Widget* bubble_widget() { return bubble_widget_; }
36 36
37 private: 37 private:
38 TrayBackgroundView* tray_; 38 TrayBackgroundView* tray_;
39 message_center::TrayBubbleView* bubble_view_; // unowned 39 views::TrayBubbleView* bubble_view_; // unowned
40 views::Widget* bubble_widget_; 40 views::Widget* bubble_widget_;
41 scoped_ptr<TrayEventFilter> tray_event_filter_; 41 scoped_ptr<TrayEventFilter> tray_event_filter_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(TrayBubbleWrapper); 43 DISALLOW_COPY_AND_ASSIGN(TrayBubbleWrapper);
44 }; 44 };
45 45
46 } // namespace internal 46 } // namespace internal
47 } // namespace ash 47 } // namespace ash
48 48
49 #endif // ASH_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_ 49 #endif // ASH_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_
OLDNEW
« no previous file with comments | « ash/system/tray/tray_bubble_view.cc ('k') | ash/system/tray/tray_bubble_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698