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

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

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 9 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
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_COMMON_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_
6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_
7
8 #include "base/macros.h"
9 #include "ui/views/widget/widget_observer.h"
10
11 namespace views {
12 class TrayBubbleView;
13 }
14
15 namespace ash {
16 class TrayBackgroundView;
17
18 // Creates and manages the Widget and EventFilter components of a bubble.
19
20 class TrayBubbleWrapper : public views::WidgetObserver {
21 public:
22 TrayBubbleWrapper(TrayBackgroundView* tray,
23 views::TrayBubbleView* bubble_view);
24 ~TrayBubbleWrapper() override;
25
26 // views::WidgetObserver overrides:
27 void OnWidgetDestroying(views::Widget* widget) override;
28 void OnWidgetBoundsChanged(views::Widget* widget,
29 const gfx::Rect& new_bounds) override;
30
31 const TrayBackgroundView* tray() const { return tray_; }
32 TrayBackgroundView* tray() { return tray_; }
33 views::TrayBubbleView* bubble_view() { return bubble_view_; }
34 const views::TrayBubbleView* bubble_view() const { return bubble_view_; }
35 views::Widget* bubble_widget() { return bubble_widget_; }
36 const views::Widget* bubble_widget() const { return bubble_widget_; }
37
38 private:
39 TrayBackgroundView* tray_;
40 views::TrayBubbleView* bubble_view_; // unowned
41 views::Widget* bubble_widget_;
42
43 DISALLOW_COPY_AND_ASSIGN(TrayBubbleWrapper);
44 };
45
46 } // namespace ash
47
48 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_
OLDNEW
« no previous file with comments | « ash/common/system/tray/tray_background_view.cc ('k') | ash/common/system/tray/tray_bubble_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698