diff options
Diffstat (limited to 'chrome/browser/views/page_info_bubble_view.h')
-rw-r--r-- | chrome/browser/views/page_info_bubble_view.h | 76 |
1 files changed, 3 insertions, 73 deletions
diff --git a/chrome/browser/views/page_info_bubble_view.h b/chrome/browser/views/page_info_bubble_view.h index cc8d1f0..cb920bb 100644 --- a/chrome/browser/views/page_info_bubble_view.h +++ b/chrome/browser/views/page_info_bubble_view.h @@ -6,78 +6,8 @@ #define CHROME_BROWSER_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ #pragma once -#include "chrome/browser/page_info_model.h" -#include "chrome/browser/views/info_bubble.h" -#include "views/controls/link.h" -#include "views/view.h" - -namespace views { -class Label; -} - -class PageInfoBubbleView : public views::View, - public PageInfoModel::PageInfoModelObserver, - public InfoBubbleDelegate, - public views::LinkController, - public AnimationDelegate { - public: - PageInfoBubbleView(gfx::NativeWindow parent_window, - Profile* profile, - const GURL& url, - const NavigationEntry::SSLStatus& ssl, - bool show_history); - virtual ~PageInfoBubbleView(); - - // Show the certificate dialog. - void ShowCertDialog(); - - void set_info_bubble(InfoBubble* info_bubble) { info_bubble_ = info_bubble; } - - // View methods: - virtual gfx::Size GetPreferredSize(); - - // PageInfoModel::PageInfoModelObserver methods: - virtual void ModelChanged(); - - // InfoBubbleDelegate methods: - virtual void InfoBubbleClosing(InfoBubble* info_bubble, - bool closed_by_escape) {} - virtual bool CloseOnEscape() { return true; } - virtual bool FadeInOnShow() { return false; } - virtual std::wstring accessible_name() { return L"PageInfoBubble"; } - - // LinkController methods: - virtual void LinkActivated(views::Link* source, int event_flags); - - // Overridden from AnimationDelegate. - virtual void AnimationEnded(const Animation* animation); - virtual void AnimationProgressed(const Animation* animation); - - private: - // Layout the sections within the bubble. - void LayoutSections(); - - // The model providing the various section info. - PageInfoModel model_; - - // The parent window of the InfoBubble showing this view. - gfx::NativeWindow parent_window_; - - // The id of the certificate for this page. - int cert_id_; - - InfoBubble* info_bubble_; - - // The Help Center link at the bottom of the bubble. - views::Link* help_center_link_; - - // Animation that helps us change size smoothly as more data comes in. - SlideAnimation resize_animation_; - - // The height of the info bubble at the start of the resize animation. - int animation_start_height_; - - DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); -}; +#include "chrome/browser/ui/views/page_info_bubble_view.h" +// TODO(beng): remove this file once all includes have been updated. #endif // CHROME_BROWSER_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ + |