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 "chrome/browser/page_info_model.h" | 9 #include "chrome/browser/page_info_model.h" |
10 #include "chrome/browser/page_info_model_observer.h" | 10 #include "chrome/browser/page_info_model_observer.h" |
11 #include "ui/base/animation/slide_animation.h" | 11 #include "ui/base/animation/slide_animation.h" |
12 #include "views/bubble/bubble_delegate.h" | 12 #include "ui/views/bubble/bubble_delegate.h" |
13 #include "views/controls/link_listener.h" | 13 #include "views/controls/link_listener.h" |
14 | 14 |
15 class PageInfoBubbleView : public views::BubbleDelegateView, | 15 class PageInfoBubbleView : public views::BubbleDelegateView, |
16 public PageInfoModelObserver, | 16 public PageInfoModelObserver, |
17 public views::LinkListener { | 17 public views::LinkListener { |
18 public: | 18 public: |
19 PageInfoBubbleView(views::View* anchor_view, | 19 PageInfoBubbleView(views::View* anchor_view, |
20 Profile* profile, | 20 Profile* profile, |
21 const GURL& url, | 21 const GURL& url, |
22 const NavigationEntry::SSLStatus& ssl, | 22 const NavigationEntry::SSLStatus& ssl, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Animation that helps us change size smoothly as more data comes in. | 67 // Animation that helps us change size smoothly as more data comes in. |
68 ui::SlideAnimation resize_animation_; | 68 ui::SlideAnimation resize_animation_; |
69 | 69 |
70 // The height of the info bubble at the start of the resize animation. | 70 // The height of the info bubble at the start of the resize animation. |
71 int animation_start_height_; | 71 int animation_start_height_; |
72 | 72 |
73 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); | 73 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); |
74 }; | 74 }; |
75 | 75 |
76 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ | 76 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ |
OLD | NEW |