summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/pinned_contents_info_bubble.h
diff options
context:
space:
mode:
authordpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-06 12:36:01 +0000
committerdpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-06 12:36:01 +0000
commit6c70e1efa665b0cbd13f79597de27ecca7fa4854 (patch)
tree76ac328f8111134d7698ae0fc92efc99039b3f49 /chrome/browser/views/pinned_contents_info_bubble.h
parent41fa44caf6cf4e7c789af0db508ef64efb20a53d (diff)
downloadchromium_src-6c70e1efa665b0cbd13f79597de27ecca7fa4854.zip
chromium_src-6c70e1efa665b0cbd13f79597de27ecca7fa4854.tar.gz
chromium_src-6c70e1efa665b0cbd13f79597de27ecca7fa4854.tar.bz2
Add ability to place bubble arrow on left and right side of the bubble or make it float with top edge.
BUG=crosbug.com/2800 TEST=Should be no visible changes with info bubble, everything should work as before. Bubble is used for example in bookmarking. Review URL: http://codereview.chromium.org/1820002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46564 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/pinned_contents_info_bubble.h')
-rw-r--r--chrome/browser/views/pinned_contents_info_bubble.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/chrome/browser/views/pinned_contents_info_bubble.h b/chrome/browser/views/pinned_contents_info_bubble.h
index 7ceb89b..d93b0e2 100644
--- a/chrome/browser/views/pinned_contents_info_bubble.h
+++ b/chrome/browser/views/pinned_contents_info_bubble.h
@@ -18,8 +18,8 @@ class PinnedContentsBorderContents : public BorderContents {
// BorderContents overrides:
virtual void SizeAndGetBounds(
const gfx::Rect& position_relative_to, // In screen coordinates
+ BubbleBorder::ArrowLocation arrow_location,
const gfx::Size& contents_size,
- bool prefer_arrow_on_right,
gfx::Rect* contents_bounds, // Returned in window coordinates
gfx::Rect* window_bounds); // Returned in screen coordinates
@@ -60,11 +60,13 @@ class PinnedContentsInfoBubble : public InfoBubble {
// order to anchor its contents. Once the InfoBubble has been anchored its
// arrow may be pointing to a slightly different |y| location than specified
// in |position_relative_to|.
- static PinnedContentsInfoBubble* Show(views::Window* parent,
- const gfx::Rect& position_relative_to,
- const gfx::Point& bubble_anchor_,
- views::View* contents,
- InfoBubbleDelegate* delegate);
+ static PinnedContentsInfoBubble* Show(
+ views::Widget* parent,
+ const gfx::Rect& position_relative_to,
+ BubbleBorder::ArrowLocation arrow_location,
+ const gfx::Point& bubble_anchor_,
+ views::View* contents,
+ InfoBubbleDelegate* delegate);
private:
explicit PinnedContentsInfoBubble(const gfx::Point& bubble_anchor)