| 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 class TabContents; |
| 17 |
| 16 namespace content { | 18 namespace content { |
| 17 class PageNavigator; | 19 class PageNavigator; |
| 18 struct SSLStatus; | 20 struct SSLStatus; |
| 19 } | 21 } |
| 20 | 22 |
| 21 class PageInfoBubbleView : public views::BubbleDelegateView, | 23 class PageInfoBubbleView : public views::BubbleDelegateView, |
| 22 public PageInfoModelObserver, | 24 public PageInfoModelObserver, |
| 23 public views::LinkListener { | 25 public views::LinkListener { |
| 24 public: | 26 public: |
| 25 PageInfoBubbleView(views::View* anchor_view, | 27 PageInfoBubbleView(views::View* anchor_view, |
| 26 Profile* profile, | 28 TabContents* tab_contents, |
| 27 const GURL& url, | 29 const GURL& url, |
| 28 const content::SSLStatus& ssl, | 30 const content::SSLStatus& ssl, |
| 29 bool show_history, | 31 bool show_history, |
| 30 content::PageNavigator* navigator); | 32 content::PageNavigator* navigator); |
| 31 virtual ~PageInfoBubbleView(); | 33 virtual ~PageInfoBubbleView(); |
| 32 | 34 |
| 33 // Show the certificate dialog. | 35 // Show the certificate dialog. |
| 34 void ShowCertDialog(); | 36 void ShowCertDialog(); |
| 35 | 37 |
| 36 // views::View methods: | 38 // views::View methods: |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 75 |
| 74 // Animation that helps us change size smoothly as more data comes in. | 76 // Animation that helps us change size smoothly as more data comes in. |
| 75 ui::SlideAnimation resize_animation_; | 77 ui::SlideAnimation resize_animation_; |
| 76 | 78 |
| 77 // The height of the info bubble at the start of the resize animation. | 79 // The height of the info bubble at the start of the resize animation. |
| 78 int animation_start_height_; | 80 int animation_start_height_; |
| 79 | 81 |
| 80 // Used for loading pages. | 82 // Used for loading pages. |
| 81 content::PageNavigator* navigator_; | 83 content::PageNavigator* navigator_; |
| 82 | 84 |
| 85 TabContents* tab_contents_; |
| 86 |
| 83 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); | 87 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); |
| 84 }; | 88 }; |
| 85 | 89 |
| 86 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ | 90 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ |
| OLD | NEW |