Chromium Code Reviews| Index: ui/views/bubble/bubble_frame_view.h |
| diff --git a/ui/views/bubble/bubble_frame_view.h b/ui/views/bubble/bubble_frame_view.h |
| index 0f014288a1a70f9d2c3e5c785d753ef6518ecaf5..f13ccd04a746f340696cf686d25b538a0027413a 100644 |
| --- a/ui/views/bubble/bubble_frame_view.h |
| +++ b/ui/views/bubble/bubble_frame_view.h |
| @@ -42,10 +42,10 @@ class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView { |
| // Given the size of the contents and the rect to point at, returns the bounds |
| // of the bubble window. The bubble's arrow location may change if the bubble |
| - // does not fit on the monitor and |try_mirroring_arrow| is true. |
| + // does not fit on the monitor and |try_fit_bubble| is true. |
| gfx::Rect GetUpdatedWindowBounds(const gfx::Rect& anchor_rect, |
| gfx::Size client_size, |
| - bool try_mirroring_arrow); |
| + bool try_fit_bubble); |
| void SetBubbleBorder(BubbleBorder* border); |
| @@ -63,6 +63,11 @@ class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView { |
| const gfx::Rect& anchor_rect, |
| const gfx::Size& client_size); |
| + // Move arrow (by setting its offset) to make bubble fit in the monitor |
|
msw
2012/09/18 19:33:42
nit: grammar; consider: "Adjust the bubble's arrow
xiyuan
2012/09/19 18:20:09
Done.
|
| + // bounds. |
| + void OffsetArrowIfOffScreen(const gfx::Rect& anchor_rect, |
| + const gfx::Size& client_size); |
| + |
| // The bubble border. |
| BubbleBorder* bubble_border_; |