| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/views/pinned_contents_info_bubble.h" | 5 #include "chrome/browser/ui/views/pinned_contents_info_bubble.h" |
| 6 | 6 |
| 7 #include "views/bubble/bubble_border.h" | 7 #include "views/bubble/bubble_border.h" |
| 8 | 8 |
| 9 void PinnedContentsBorderContents::SizeAndGetBounds( | 9 void PinnedContentsBorderContents::SizeAndGetBounds( |
| 10 const gfx::Rect& position_relative_to, | 10 const gfx::Rect& position_relative_to, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 PinnedContentsInfoBubble* PinnedContentsInfoBubble::Show( | 37 PinnedContentsInfoBubble* PinnedContentsInfoBubble::Show( |
| 38 views::Widget* parent, | 38 views::Widget* parent, |
| 39 const gfx::Rect& position_relative_to, | 39 const gfx::Rect& position_relative_to, |
| 40 views::BubbleBorder::ArrowLocation arrow_location, | 40 views::BubbleBorder::ArrowLocation arrow_location, |
| 41 const gfx::Point& bubble_anchor, | 41 const gfx::Point& bubble_anchor, |
| 42 views::View* contents, | 42 views::View* contents, |
| 43 BubbleDelegate* delegate) { | 43 BubbleDelegate* delegate) { |
| 44 PinnedContentsInfoBubble* bubble = | 44 PinnedContentsInfoBubble* bubble = |
| 45 new PinnedContentsInfoBubble(bubble_anchor); | 45 new PinnedContentsInfoBubble(bubble_anchor); |
| 46 bubble->InitBubble(parent, position_relative_to, arrow_location, | 46 bubble->InitBubble(parent, position_relative_to, arrow_location, |
| 47 views::BubbleBorder::ALIGN_ARROW_TO_MID_ANCHOR, |
| 47 contents, delegate); | 48 contents, delegate); |
| 48 return bubble; | 49 return bubble; |
| 49 } | 50 } |
| 50 | 51 |
| 51 BorderContents* PinnedContentsInfoBubble::CreateBorderContents() { | 52 BorderContents* PinnedContentsInfoBubble::CreateBorderContents() { |
| 52 return new PinnedContentsBorderContents(bubble_anchor_); | 53 return new PinnedContentsBorderContents(bubble_anchor_); |
| 53 } | 54 } |
| OLD | NEW |