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

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

Issue 10554010: Remove BrowserList::GetLastActive usage from WebUI pages. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 6 months 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 #ifndef CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/page_info_model.h" 10 #include "chrome/browser/page_info_model.h"
11 #include "chrome/browser/page_info_model_observer.h" 11 #include "chrome/browser/page_info_model_observer.h"
12 #include "ui/base/animation/slide_animation.h" 12 #include "ui/base/animation/slide_animation.h"
13 #include "ui/views/bubble/bubble_delegate.h" 13 #include "ui/views/bubble/bubble_delegate.h"
14 #include "ui/views/controls/link_listener.h" 14 #include "ui/views/controls/link_listener.h"
15 15
16 namespace content { 16 namespace content {
17 class PageNavigator; 17 class PageNavigator;
18 class WebContents;
18 struct SSLStatus; 19 struct SSLStatus;
19 } 20 }
20 21
21 class PageInfoBubbleView : public views::BubbleDelegateView, 22 class PageInfoBubbleView : public views::BubbleDelegateView,
22 public PageInfoModelObserver, 23 public PageInfoModelObserver,
23 public views::LinkListener { 24 public views::LinkListener {
24 public: 25 public:
25 PageInfoBubbleView(views::View* anchor_view, 26 PageInfoBubbleView(views::View* anchor_view,
26 Profile* profile, 27 content::WebContents* web_contents,
27 const GURL& url, 28 const GURL& url,
28 const content::SSLStatus& ssl, 29 const content::SSLStatus& ssl,
29 bool show_history, 30 bool show_history,
30 content::PageNavigator* navigator); 31 content::PageNavigator* navigator);
31 virtual ~PageInfoBubbleView(); 32 virtual ~PageInfoBubbleView();
32 33
33 // Show the certificate dialog. 34 // Show the certificate dialog.
34 void ShowCertDialog(); 35 void ShowCertDialog();
35 36
36 // views::View methods: 37 // views::View methods:
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 74
74 // Animation that helps us change size smoothly as more data comes in. 75 // Animation that helps us change size smoothly as more data comes in.
75 ui::SlideAnimation resize_animation_; 76 ui::SlideAnimation resize_animation_;
76 77
77 // The height of the info bubble at the start of the resize animation. 78 // The height of the info bubble at the start of the resize animation.
78 int animation_start_height_; 79 int animation_start_height_;
79 80
80 // Used for loading pages. 81 // Used for loading pages.
81 content::PageNavigator* navigator_; 82 content::PageNavigator* navigator_;
82 83
84 content::WebContents* web_contents_;
85
83 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); 86 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView);
84 }; 87 };
85 88
86 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ 89 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/page_info_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698