| 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" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // Show the certificate dialog. | 27 // Show the certificate dialog. |
| 28 void ShowCertDialog(); | 28 void ShowCertDialog(); |
| 29 | 29 |
| 30 // views::View methods: | 30 // views::View methods: |
| 31 virtual gfx::Size GetPreferredSize() OVERRIDE; | 31 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 32 | 32 |
| 33 // PageInfoModelObserver methods: | 33 // PageInfoModelObserver methods: |
| 34 virtual void OnPageInfoModelChanged() OVERRIDE; | 34 virtual void OnPageInfoModelChanged() OVERRIDE; |
| 35 | 35 |
| 36 // views::BubbleDelegate methods: | 36 // views::BubbleDelegate methods: |
| 37 virtual gfx::Point GetAnchorPoint() OVERRIDE; | 37 virtual gfx::Rect GetAnchorRect() OVERRIDE; |
| 38 | 38 |
| 39 // views::LinkListener methods: | 39 // views::LinkListener methods: |
| 40 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 40 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
| 41 | 41 |
| 42 // ui::AnimationDelegate methods: | 42 // ui::AnimationDelegate methods: |
| 43 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 43 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
| 44 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 44 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 // Gets the size of the separator, including padding. | 47 // Gets the size of the separator, including padding. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 68 // Animation that helps us change size smoothly as more data comes in. | 68 // Animation that helps us change size smoothly as more data comes in. |
| 69 ui::SlideAnimation resize_animation_; | 69 ui::SlideAnimation resize_animation_; |
| 70 | 70 |
| 71 // The height of the info bubble at the start of the resize animation. | 71 // The height of the info bubble at the start of the resize animation. |
| 72 int animation_start_height_; | 72 int animation_start_height_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); | 74 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ | 77 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ |
| OLD | NEW |