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

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

Issue 621133002: replace OVERRIDE and FINAL with override and final in ash/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « ash/system/tray/tray_bar_button_with_title.cc ('k') | ash/system/tray/tray_details_view.h » ('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 views { 12 namespace views {
13 class TrayBubbleView; 13 class TrayBubbleView;
14 } 14 }
15 15
16 namespace ash { 16 namespace ash {
17 class TrayBackgroundView; 17 class TrayBackgroundView;
18 class TrayEventFilter; 18 class TrayEventFilter;
19 19
20 // Creates and manages the Widget and EventFilter components of a bubble. 20 // Creates and manages the Widget and EventFilter components of a bubble.
21 21
22 class TrayBubbleWrapper : public views::WidgetObserver { 22 class TrayBubbleWrapper : public views::WidgetObserver {
23 public: 23 public:
24 TrayBubbleWrapper(TrayBackgroundView* tray, 24 TrayBubbleWrapper(TrayBackgroundView* tray,
25 views::TrayBubbleView* bubble_view); 25 views::TrayBubbleView* bubble_view);
26 virtual ~TrayBubbleWrapper(); 26 virtual ~TrayBubbleWrapper();
27 27
28 // views::WidgetObserver overrides: 28 // views::WidgetObserver overrides:
29 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; 29 virtual void OnWidgetDestroying(views::Widget* widget) override;
30 virtual void OnWidgetBoundsChanged(views::Widget* widget, 30 virtual void OnWidgetBoundsChanged(views::Widget* widget,
31 const gfx::Rect& new_bounds) OVERRIDE; 31 const gfx::Rect& new_bounds) override;
32 32
33 const TrayBackgroundView* tray() const { return tray_; } 33 const TrayBackgroundView* tray() const { return tray_; }
34 TrayBackgroundView* tray() { return tray_; } 34 TrayBackgroundView* tray() { return tray_; }
35 const views::TrayBubbleView* bubble_view() const { return bubble_view_; } 35 const views::TrayBubbleView* bubble_view() const { return bubble_view_; }
36 const views::Widget* bubble_widget() const { return bubble_widget_; } 36 const views::Widget* bubble_widget() const { return bubble_widget_; }
37 37
38 private: 38 private:
39 TrayBackgroundView* tray_; 39 TrayBackgroundView* tray_;
40 views::TrayBubbleView* bubble_view_; // unowned 40 views::TrayBubbleView* bubble_view_; // unowned
41 views::Widget* bubble_widget_; 41 views::Widget* bubble_widget_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(TrayBubbleWrapper); 43 DISALLOW_COPY_AND_ASSIGN(TrayBubbleWrapper);
44 }; 44 };
45 45
46 } // namespace ash 46 } // namespace ash
47 47
48 #endif // ASH_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_ 48 #endif // ASH_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_
OLDNEW
« no previous file with comments | « ash/system/tray/tray_bar_button_with_title.cc ('k') | ash/system/tray/tray_details_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698