| 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/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 Loading... |
| 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 } |
| OLD | NEW |