Chromium Code Reviews| 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 UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ | 5 #ifndef UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ |
| 6 #define UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ | 6 #define UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/views/bubble/bubble_delegate.h" | 9 #include "ui/views/bubble/bubble_delegate.h" |
| 10 #include "ui/views/views_export.h" | 10 #include "ui/views/views_export.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 // Sets up animations, and show the bubble. Must occur after CreateBubble() | 106 // Sets up animations, and show the bubble. Must occur after CreateBubble() |
| 107 // is called. | 107 // is called. |
| 108 void InitializeAndShowBubble(); | 108 void InitializeAndShowBubble(); |
| 109 | 109 |
| 110 // Called whenever the bubble size or location may have changed. | 110 // Called whenever the bubble size or location may have changed. |
| 111 void UpdateBubble(); | 111 void UpdateBubble(); |
| 112 | 112 |
| 113 // Sets the maximum bubble height and resizes the bubble. | 113 // Sets the maximum bubble height and resizes the bubble. |
| 114 void SetMaxHeight(int height); | 114 void SetMaxHeight(int height); |
| 115 | 115 |
| 116 // Ensures that the bubble has at least the given width. | |
| 117 void SetMinWidth(int width); | |
|
msw
2012/11/15 21:08:48
This should probably just be SetBubbleWidth and sc
bartfab (slow)
2012/11/16 14:56:24
Will do - moving this to another CL though.
| |
| 118 | |
| 116 // Sets whether or not to paint the bubble border arrow. | 119 // Sets whether or not to paint the bubble border arrow. |
| 117 void SetPaintArrow(bool paint_arrow); | 120 void SetPaintArrow(bool paint_arrow); |
| 118 | 121 |
| 119 // Returns the border insets. Called by TrayEventFilter. | 122 // Returns the border insets. Called by TrayEventFilter. |
| 120 gfx::Insets GetBorderInsets() const; | 123 gfx::Insets GetBorderInsets() const; |
| 121 | 124 |
| 122 // Called when the delegate is destroyed. | 125 // Called when the delegate is destroyed. |
| 123 void reset_delegate() { delegate_ = NULL; } | 126 void reset_delegate() { delegate_ = NULL; } |
| 124 | 127 |
| 125 Delegate* delegate() { return delegate_; } | 128 Delegate* delegate() { return delegate_; } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 internal::TrayBubbleBorder* bubble_border_; | 167 internal::TrayBubbleBorder* bubble_border_; |
| 165 scoped_ptr<internal::TrayBubbleContentMask> bubble_content_mask_; | 168 scoped_ptr<internal::TrayBubbleContentMask> bubble_content_mask_; |
| 166 bool is_gesture_dragging_; | 169 bool is_gesture_dragging_; |
| 167 | 170 |
| 168 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); | 171 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); |
| 169 }; | 172 }; |
| 170 | 173 |
| 171 } // namespace views | 174 } // namespace views |
| 172 | 175 |
| 173 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ | 176 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ |
| OLD | NEW |