OLD | NEW |
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_VIEW_H_ | 5 #ifndef ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_ |
6 #define ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_ | 6 #define ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_ |
7 | 7 |
8 #include "ui/aura/event_filter.h" | 8 #include "ui/aura/event_filter.h" |
9 #include "ui/views/bubble/bubble_delegate.h" | 9 #include "ui/views/bubble/bubble_delegate.h" |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 TrayBubbleView(views::View* anchor, | 61 TrayBubbleView(views::View* anchor, |
62 views::BubbleBorder::ArrowLocation arrow_location, | 62 views::BubbleBorder::ArrowLocation arrow_location, |
63 Host* host, | 63 Host* host, |
64 bool can_activate, | 64 bool can_activate, |
65 int bubble_width); | 65 int bubble_width); |
66 virtual ~TrayBubbleView(); | 66 virtual ~TrayBubbleView(); |
67 | 67 |
68 // Creates a bubble border with the specified arrow offset. | 68 // Creates a bubble border with the specified arrow offset. |
69 void SetBubbleBorder(int arrow_offset); | 69 void SetBubbleBorder(int arrow_offset); |
70 | 70 |
71 // Called whenever the bubble anchor location may have moved. | 71 // Called whenever the bubble size or location may have moved. |
72 void UpdateAnchor(); | 72 void UpdateBubble(); |
73 | 73 |
74 // Sets the maximum bubble height and resizes the bubble. | 74 // Sets the maximum bubble height and resizes the bubble. |
75 void SetMaxHeight(int height); | 75 void SetMaxHeight(int height); |
76 | 76 |
77 // Called when the host is destroyed. | 77 // Called when the host is destroyed. |
78 void reset_host() { host_ = NULL; } | 78 void reset_host() { host_ = NULL; } |
79 | 79 |
80 // Overridden from views::WidgetDelegate. | 80 // Overridden from views::WidgetDelegate. |
81 virtual bool CanActivate() const OVERRIDE; | 81 virtual bool CanActivate() const OVERRIDE; |
82 | 82 |
(...skipping 23 matching lines...) Expand all Loading... |
106 int max_height_; | 106 int max_height_; |
107 int bubble_width_; | 107 int bubble_width_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); | 109 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace internal | 112 } // namespace internal |
113 } // namespace ash | 113 } // namespace ash |
114 | 114 |
115 #endif // ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_ | 115 #endif // ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_ |
OLD | NEW |