| Index: chrome/browser/views/info_bubble.h
|
| diff --git a/chrome/browser/views/info_bubble.h b/chrome/browser/views/info_bubble.h
|
| index 996413a6909ef0ee3fb6166cdf5edc8b734a2124..0e7e6228ad735058cac1f5219d08d00f6cc0e18f 100644
|
| --- a/chrome/browser/views/info_bubble.h
|
| +++ b/chrome/browser/views/info_bubble.h
|
| @@ -74,6 +74,12 @@ class InfoBubbleDelegate {
|
|
|
| // Whether the InfoBubble should be closed when the Esc key is pressed.
|
| virtual bool CloseOnEscape() = 0;
|
| +
|
| + // Whether the default placement of the anchor is on the origin side of the
|
| + // text direction. For example: if true (the default) in LTR text direction,
|
| + // the ArrowLocation will be TOP_LEFT, if false it will be TOP_RIGHT.
|
| + // RTL is the reverse.
|
| + virtual bool PreferOriginSideAnchor() { return true; }
|
| };
|
|
|
| // TODO: this code is ifdef-tastic. It might be cleaner to refactor the
|
| @@ -92,9 +98,13 @@ class InfoBubble
|
| // screen coordinates at which the InfoBubble will point. Show() takes
|
| // ownership of |contents| and deletes the created InfoBubble when another
|
| // window is activated. You can explicitly close the bubble by invoking
|
| - // Close(). You may provide an optional |delegate| to be notified when the
|
| - // InfoBubble is closed and/or to prevent the InfoBubble from being closed
|
| - // when the Escape key is pressed (the default behavior).
|
| + // Close(). You may provide an optional |delegate| to:
|
| + // - Be notified when the InfoBubble is closed.
|
| + // - Prevent the InfoBubble from being closed when the Escape key is
|
| + // pressed (the default behavior).
|
| + // - Have the InfoBubble prefer to anchor its arrow to the non-origin
|
| + // side of text direction. (see comment above
|
| + // InfoBubbleDelegate::PreferOriginSideAnchor); .
|
| static InfoBubble* Show(views::Window* parent,
|
| const gfx::Rect& position_relative_to,
|
| views::View* contents,
|
|
|