Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(534)

Side by Side Diff: chrome/browser/ui/views/pinned_contents_info_bubble.cc

Issue 8493011: Merge 108537 - Align avatar bubble with edge of anchor control (Closed) Base URL: svn://svn.chromium.org/chrome/branches/912/src/
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/page_info_bubble_view.cc ('k') | chrome/browser/ui/views/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698