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

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

Issue 2148573002: Add palette tray to ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stylus-tool-structure
Patch Set: Comments Created 4 years, 5 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
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_COMMON_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_ 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_
6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_ 6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/views/widget/widget_observer.h" 9 #include "ui/views/widget/widget_observer.h"
10 10
(...skipping 13 matching lines...) Expand all
24 views::TrayBubbleView* bubble_view); 24 views::TrayBubbleView* bubble_view);
25 ~TrayBubbleWrapper() override; 25 ~TrayBubbleWrapper() override;
26 26
27 // views::WidgetObserver overrides: 27 // views::WidgetObserver overrides:
28 void OnWidgetDestroying(views::Widget* widget) override; 28 void OnWidgetDestroying(views::Widget* widget) override;
29 void OnWidgetBoundsChanged(views::Widget* widget, 29 void OnWidgetBoundsChanged(views::Widget* widget,
30 const gfx::Rect& new_bounds) override; 30 const gfx::Rect& new_bounds) override;
31 31
32 const TrayBackgroundView* tray() const { return tray_; } 32 const TrayBackgroundView* tray() const { return tray_; }
33 TrayBackgroundView* tray() { return tray_; } 33 TrayBackgroundView* tray() { return tray_; }
34 views::TrayBubbleView* bubble_view() { return bubble_view_; }
34 const views::TrayBubbleView* bubble_view() const { return bubble_view_; } 35 const views::TrayBubbleView* bubble_view() const { return bubble_view_; }
35 const views::Widget* bubble_widget() const { return bubble_widget_; } 36 const views::Widget* bubble_widget() const { return bubble_widget_; }
36 37
37 private: 38 private:
38 TrayBackgroundView* tray_; 39 TrayBackgroundView* tray_;
39 views::TrayBubbleView* bubble_view_; // unowned 40 views::TrayBubbleView* bubble_view_; // unowned
40 views::Widget* bubble_widget_; 41 views::Widget* bubble_widget_;
41 42
42 DISALLOW_COPY_AND_ASSIGN(TrayBubbleWrapper); 43 DISALLOW_COPY_AND_ASSIGN(TrayBubbleWrapper);
43 }; 44 };
44 45
45 } // namespace ash 46 } // namespace ash
46 47
47 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_ 48 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BUBBLE_WRAPPER_H_
OLDNEW
« ash/common/system/chromeos/palette/palette_tray.cc ('K') | « ash/common/system/status_area_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698