summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/info_bubble.h
diff options
context:
space:
mode:
authorjcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-10 22:33:56 +0000
committerjcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-10 22:33:56 +0000
commit37c1cfb34294b31a47711b8bdb87165a91478eb6 (patch)
tree8ee5ef58f97bff47db03b17239173451f9a390d0 /chrome/browser/views/info_bubble.h
parent09d46b7984480d74ec8a0d9163a6072757f2056b (diff)
downloadchromium_src-37c1cfb34294b31a47711b8bdb87165a91478eb6.zip
chromium_src-37c1cfb34294b31a47711b8bdb87165a91478eb6.tar.gz
chromium_src-37c1cfb34294b31a47711b8bdb87165a91478eb6.tar.bz2
Adding a way to pin the info bubble arrow.
It is useful with the app launcher that should always stay at the same location. BUG=43754 TEST=Open the app launcher with the Chrome window at the bottom of the screen. The app launcher bubble should be displayed in the browser, with the app launcher location bar aligned with the browser's one. Review URL: http://codereview.chromium.org/2000005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46863 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/info_bubble.h')
-rw-r--r--chrome/browser/views/info_bubble.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/views/info_bubble.h b/chrome/browser/views/info_bubble.h
index fa15bf7..f6d774d 100644
--- a/chrome/browser/views/info_bubble.h
+++ b/chrome/browser/views/info_bubble.h
@@ -49,11 +49,13 @@ class BorderContents : public views::View {
// Given the size of the contents and the rect to point at, returns the bounds
// of both the border and the contents inside the bubble.
// |arrow_location| specifies the preferred location for the arrow
- // anchor. If the bubble does not fit on the monitor, the arrow location may
- // changed so it can. In case of RTL arrow is mirrored.
+ // anchor. If the bubble does not fit on the monitor and
+ // |allow_bubble_offscreen| is false, the arrow location may change so the
+ // bubble shows entirely.
virtual void SizeAndGetBounds(
const gfx::Rect& position_relative_to, // In screen coordinates
BubbleBorder::ArrowLocation arrow_location,
+ bool allow_bubble_offscreen,
const gfx::Size& contents_size,
gfx::Rect* contents_bounds, // Returned in window coordinates
gfx::Rect* window_bounds); // Returned in screen coordinates