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 "chrome/browser/ui/views/bubble/bubble.h" | 12 #include "chrome/browser/ui/views/bubble/bubble.h" |
13 #include "ui/base/animation/animation_delegate.h" | 13 #include "ui/base/animation/animation_delegate.h" |
14 #include "ui/base/animation/slide_animation.h" | 14 #include "ui/base/animation/slide_animation.h" |
15 #include "views/controls/link_listener.h" | 15 #include "views/controls/link_listener.h" |
16 #include "views/view.h" | 16 #include "views/view.h" |
17 | 17 |
18 namespace views { | |
19 class Label; | |
20 } | |
21 | |
22 class PageInfoBubbleView : public views::View, | 18 class PageInfoBubbleView : public views::View, |
23 public PageInfoModelObserver, | 19 public PageInfoModelObserver, |
24 public BubbleDelegate, | 20 public BubbleDelegate, |
25 public views::LinkListener, | 21 public views::LinkListener, |
26 public ui::AnimationDelegate { | 22 public ui::AnimationDelegate { |
27 public: | 23 public: |
28 PageInfoBubbleView(gfx::NativeWindow parent_window, | 24 PageInfoBubbleView(gfx::NativeWindow parent_window, |
29 Profile* profile, | 25 Profile* profile, |
30 const GURL& url, | 26 const GURL& url, |
31 const NavigationEntry::SSLStatus& ssl, | 27 const NavigationEntry::SSLStatus& ssl, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // Animation that helps us change size smoothly as more data comes in. | 83 // Animation that helps us change size smoothly as more data comes in. |
88 ui::SlideAnimation resize_animation_; | 84 ui::SlideAnimation resize_animation_; |
89 | 85 |
90 // The height of the info bubble at the start of the resize animation. | 86 // The height of the info bubble at the start of the resize animation. |
91 int animation_start_height_; | 87 int animation_start_height_; |
92 | 88 |
93 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); | 89 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); |
94 }; | 90 }; |
95 | 91 |
96 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ | 92 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ |
OLD | NEW |