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" |
11 #include "chrome/browser/google/google_util.h" | 11 #include "chrome/browser/google/google_util.h" |
12 #include "chrome/browser/ui/browser_list.h" | 12 #include "chrome/browser/ui/browser_list.h" |
13 #include "chrome/browser/ui/views/frame/browser_view.h" | 13 #include "chrome/browser/ui/views/frame/browser_view.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 "content/browser/cert_store.h" | 16 #include "content/browser/cert_store.h" |
17 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
18 #include "grit/locale_settings.h" | 18 #include "grit/locale_settings.h" |
19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
20 #include "ui/gfx/canvas.h" | 20 #include "ui/gfx/canvas.h" |
21 #include "ui/gfx/canvas_skia.h" | 21 #include "ui/gfx/canvas_skia.h" |
22 #include "ui/gfx/image/image.h" | 22 #include "ui/gfx/image/image.h" |
23 #include "ui/views/layout/grid_layout.h" | 23 #include "ui/views/layout/grid_layout.h" |
| 24 #include "ui/views/widget/widget.h" |
24 #include "views/controls/image_view.h" | 25 #include "views/controls/image_view.h" |
25 #include "views/controls/label.h" | 26 #include "views/controls/label.h" |
26 #include "views/controls/link.h" | 27 #include "views/controls/link.h" |
27 #include "views/controls/separator.h" | 28 #include "views/controls/separator.h" |
28 #include "views/widget/widget.h" | |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
32 // TODO(msw): Get color from theme/window color. | 32 // TODO(msw): Get color from theme/window color. |
33 const SkColor kColor = SK_ColorWHITE; | 33 const SkColor kColor = SK_ColorWHITE; |
34 | 34 |
35 // Layout constants. | 35 // Layout constants. |
36 const int kHGapToBorder = 11; | 36 const int kHGapToBorder = 11; |
37 const int kVerticalSectionPadding = 8; | 37 const int kVerticalSectionPadding = 8; |
38 const int kVGapToHeadline = 5; | 38 const int kVGapToHeadline = 5; |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 const GURL& url, | 475 const GURL& url, |
476 const NavigationEntry::SSLStatus& ssl, | 476 const NavigationEntry::SSLStatus& ssl, |
477 bool show_history) { | 477 bool show_history) { |
478 PageInfoBubbleView* page_info_bubble = | 478 PageInfoBubbleView* page_info_bubble = |
479 new PageInfoBubbleView(anchor_view, profile, url, ssl, show_history); | 479 new PageInfoBubbleView(anchor_view, profile, url, ssl, show_history); |
480 views::BubbleDelegateView::CreateBubble(page_info_bubble); | 480 views::BubbleDelegateView::CreateBubble(page_info_bubble); |
481 page_info_bubble->Show(); | 481 page_info_bubble->Show(); |
482 } | 482 } |
483 | 483 |
484 } | 484 } |
OLD | NEW |