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

Side by Side Diff: chrome/browser/ui/views/page_info_bubble_view.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/page_info_bubble_view.h" 5 #include "chrome/browser/ui/views/page_info_bubble_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/certificate_viewer.h" 10 #include "chrome/browser/certificate_viewer.h"
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 bounds.set_origin(point); 495 bounds.set_origin(point);
496 bounds.set_width(kIconHorizontalOffset); 496 bounds.set_width(kIconHorizontalOffset);
497 497
498 // Show the bubble. If the bubble already exist - it will be closed first. 498 // Show the bubble. If the bubble already exist - it will be closed first.
499 PageInfoBubbleView* page_info_bubble = 499 PageInfoBubbleView* page_info_bubble =
500 new PageInfoBubbleView(browser_view->GetNativeHandle(), 500 new PageInfoBubbleView(browser_view->GetNativeHandle(),
501 profile, url, ssl, show_history); 501 profile, url, ssl, show_history);
502 Bubble* bubble = 502 Bubble* bubble =
503 Bubble::Show(browser_view->GetWidget(), bounds, 503 Bubble::Show(browser_view->GetWidget(), bounds,
504 views::BubbleBorder::TOP_LEFT, 504 views::BubbleBorder::TOP_LEFT,
505 views::BubbleBorder::ALIGN_ARROW_TO_MID_ANCHOR,
505 page_info_bubble, page_info_bubble); 506 page_info_bubble, page_info_bubble);
506 page_info_bubble->set_bubble(bubble); 507 page_info_bubble->set_bubble(bubble);
507 } 508 }
508 } 509 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698