| 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 #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 Loading... |
| 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_ |
| OLD | NEW |