| 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..b82fe8e8ba8df986ee9ac55a1990ac357b5ef005 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 |adjust_if_offscreen| is true.
|
| gfx::Rect GetUpdatedWindowBounds(const gfx::Rect& anchor_rect,
|
| gfx::Size client_size,
|
| - bool try_mirroring_arrow);
|
| + bool adjust_if_offscreen);
|
|
|
| void SetBubbleBorder(BubbleBorder* border);
|
|
|
| @@ -63,6 +63,11 @@ class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView {
|
| const gfx::Rect& anchor_rect,
|
| const gfx::Size& client_size);
|
|
|
| + // Adjust the bubble's arrow offsets if the generated window bounds don't fit
|
| + // in the monitor bounds.
|
| + void OffsetArrowIfOffScreen(const gfx::Rect& anchor_rect,
|
| + const gfx::Size& client_size);
|
| +
|
| // The bubble border.
|
| BubbleBorder* bubble_border_;
|
|
|
|
|