diff options
author | dpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-06 12:36:01 +0000 |
---|---|---|
committer | dpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-06 12:36:01 +0000 |
commit | 6c70e1efa665b0cbd13f79597de27ecca7fa4854 (patch) | |
tree | 76ac328f8111134d7698ae0fc92efc99039b3f49 /chrome/browser/views/bookmark_bubble_view.cc | |
parent | 41fa44caf6cf4e7c789af0db508ef64efb20a53d (diff) | |
download | chromium_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/bookmark_bubble_view.cc')
-rw-r--r-- | chrome/browser/views/bookmark_bubble_view.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/views/bookmark_bubble_view.cc b/chrome/browser/views/bookmark_bubble_view.cc index 837969c..101ae5a 100644 --- a/chrome/browser/views/bookmark_bubble_view.cc +++ b/chrome/browser/views/bookmark_bubble_view.cc @@ -25,6 +25,8 @@ #include "views/controls/button/native_button.h" #include "views/controls/textfield/textfield.h" #include "views/focus/focus_manager.h" +#include "views/window/client_view.h" +#include "views/window/window.h" using views::Combobox; using views::ColumnSet; @@ -146,7 +148,8 @@ void BookmarkBubbleView::Show(views::Window* parent, return; bubble_ = new BookmarkBubbleView(delegate, profile, url, newly_bookmarked); - InfoBubble::Show(parent, bounds, bubble_, bubble_); + InfoBubble::Show(parent->GetClientView()->GetWidget(), bounds, + BubbleBorder::TOP_LEFT, bubble_, bubble_); GURL url_ptr(url); NotificationService::current()->Notify( NotificationType::BOOKMARK_BUBBLE_SHOWN, |