Index: ui/views/bubble/bubble_delegate.h |
diff --git a/ui/views/bubble/bubble_delegate.h b/ui/views/bubble/bubble_delegate.h |
index ad2b5ac235902b29197dd32fa7ed555f9898ba4a..7a91e22a12f34c232ef7d34ca7a171d826d4dfeb 100644 |
--- a/ui/views/bubble/bubble_delegate.h |
+++ b/ui/views/bubble/bubble_delegate.h |
@@ -81,6 +81,10 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView, |
use_focusless_ = use_focusless; |
} |
+ bool try_mirroring_arrow() { return try_mirroring_arrow_; } |
+ void set_try_mirroring_arrow(bool try_mirroring_arrow) { |
+ try_mirroring_arrow_ = try_mirroring_arrow; |
+ } |
// Get the arrow's anchor rect in screen space. |
msw
2012/07/25 23:11:56
nit: add a blank line above.
Mr4D (OOO till 08-26)
2012/07/26 01:17:20
Done.
|
virtual gfx::Rect GetAnchorRect(); |
@@ -168,6 +172,10 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView, |
// These bubbles are not interactive and should not gain focus. |
bool use_focusless_; |
+ // If set (default) the arrow will be mirrored if it helps to fit the menu |
msw
2012/07/25 23:11:56
nit: remove "(default)" or explicitly state "(defa
Mr4D (OOO till 08-26)
2012/07/26 01:17:20
Done.
|
+ // on the screen. |
+ bool try_mirroring_arrow_; |
+ |
// Parent native window of the bubble. |
gfx::NativeView parent_window_; |