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 "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/browser_list.h" | 8 #include "chrome/browser/browser_list.h" |
9 #include "chrome/browser/cert_store.h" | 9 #include "chrome/browser/cert_store.h" |
10 #include "chrome/browser/certificate_viewer.h" | 10 #include "chrome/browser/certificate_viewer.h" |
11 #include "chrome/browser/google/google_util.h" | 11 #include "chrome/browser/google/google_util.h" |
12 #include "chrome/browser/ui/views/frame/browser_view.h" | 12 #include "chrome/browser/ui/views/frame/browser_view.h" |
13 #include "chrome/browser/ui/views/info_bubble.h" | 13 #include "chrome/browser/ui/views/info_bubble.h" |
14 #include "chrome/browser/ui/views/toolbar_view.h" | 14 #include "chrome/browser/ui/views/toolbar_view.h" |
15 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
17 #include "grit/locale_settings.h" | 17 #include "grit/locale_settings.h" |
18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
19 #include "views/controls/image_view.h" | 19 #include "views/controls/image_view.h" |
20 #include "views/controls/label.h" | 20 #include "views/controls/label.h" |
21 #include "views/controls/separator.h" | 21 #include "views/controls/separator.h" |
22 #include "views/grid_layout.h" | 22 #include "views/layout/grid_layout.h" |
23 #include "views/widget/widget.h" | 23 #include "views/widget/widget.h" |
24 #include "views/window/window.h" | 24 #include "views/window/window.h" |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 // Layout constants. | 28 // Layout constants. |
29 const int kHGapToBorder = 11; | 29 const int kHGapToBorder = 11; |
30 const int kVGapToImage = 10; | 30 const int kVGapToImage = 10; |
31 const int kVGapToHeadline = 7; | 31 const int kVGapToHeadline = 7; |
32 const int kHGapImageToDescription = 6; | 32 const int kHGapImageToDescription = 6; |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 PageInfoBubbleView* page_info_bubble = | 346 PageInfoBubbleView* page_info_bubble = |
347 new PageInfoBubbleView(parent, profile, url, ssl, show_history); | 347 new PageInfoBubbleView(parent, profile, url, ssl, show_history); |
348 InfoBubble* info_bubble = | 348 InfoBubble* info_bubble = |
349 InfoBubble::Show(browser_view->GetWidget(), bounds, | 349 InfoBubble::Show(browser_view->GetWidget(), bounds, |
350 BubbleBorder::TOP_LEFT, | 350 BubbleBorder::TOP_LEFT, |
351 page_info_bubble, page_info_bubble); | 351 page_info_bubble, page_info_bubble); |
352 page_info_bubble->set_info_bubble(info_bubble); | 352 page_info_bubble->set_info_bubble(info_bubble); |
353 } | 353 } |
354 | 354 |
355 } | 355 } |
OLD | NEW |