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

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

Issue 8650001: Move ChromeOS bubble setup code to window.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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"
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/browser/ui/views/window.h"
15 #include "chrome/common/url_constants.h" 16 #include "chrome/common/url_constants.h"
16 #include "content/browser/cert_store.h" 17 #include "content/browser/cert_store.h"
17 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
18 #include "grit/locale_settings.h" 19 #include "grit/locale_settings.h"
19 #include "ui/base/l10n/l10n_util.h" 20 #include "ui/base/l10n/l10n_util.h"
20 #include "ui/gfx/canvas.h" 21 #include "ui/gfx/canvas.h"
21 #include "ui/gfx/canvas_skia.h" 22 #include "ui/gfx/canvas_skia.h"
22 #include "ui/gfx/image/image.h" 23 #include "ui/gfx/image/image.h"
23 #include "ui/views/layout/grid_layout.h" 24 #include "ui/views/layout/grid_layout.h"
24 #include "ui/views/widget/widget.h" 25 #include "ui/views/widget/widget.h"
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 471
471 namespace browser { 472 namespace browser {
472 473
473 void ShowPageInfoBubble(views::View* anchor_view, 474 void ShowPageInfoBubble(views::View* anchor_view,
474 Profile* profile, 475 Profile* profile,
475 const GURL& url, 476 const GURL& url,
476 const NavigationEntry::SSLStatus& ssl, 477 const NavigationEntry::SSLStatus& ssl,
477 bool show_history) { 478 bool show_history) {
478 PageInfoBubbleView* page_info_bubble = 479 PageInfoBubbleView* page_info_bubble =
479 new PageInfoBubbleView(anchor_view, profile, url, ssl, show_history); 480 new PageInfoBubbleView(anchor_view, profile, url, ssl, show_history);
480 views::BubbleDelegateView::CreateBubble(page_info_bubble); 481 browser::CreateViewsBubble(page_info_bubble);
481 page_info_bubble->Show(); 482 page_info_bubble->Show();
482 } 483 }
483 484
484 } 485 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/content_setting_image_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