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 29 matching lines...) Expand all Loading... |
40 // views::View methods: | 40 // views::View methods: |
41 virtual gfx::Size GetPreferredSize(); | 41 virtual gfx::Size GetPreferredSize(); |
42 | 42 |
43 // PageInfoModelObserver methods: | 43 // PageInfoModelObserver methods: |
44 virtual void OnPageInfoModelChanged() OVERRIDE; | 44 virtual void OnPageInfoModelChanged() OVERRIDE; |
45 | 45 |
46 // BubbleDelegate methods: | 46 // BubbleDelegate methods: |
47 virtual void BubbleClosing(Bubble* bubble, bool closed_by_escape) OVERRIDE; | 47 virtual void BubbleClosing(Bubble* bubble, bool closed_by_escape) OVERRIDE; |
48 virtual bool CloseOnEscape() OVERRIDE; | 48 virtual bool CloseOnEscape() OVERRIDE; |
49 virtual bool FadeInOnShow() OVERRIDE; | 49 virtual bool FadeInOnShow() OVERRIDE; |
50 virtual string16 accessible_name() OVERRIDE; | 50 virtual string16 GetAccessibleName() OVERRIDE; |
51 | 51 |
52 // views::LinkListener methods: | 52 // views::LinkListener methods: |
53 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 53 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
54 | 54 |
55 // ui::AnimationDelegate methods: | 55 // ui::AnimationDelegate methods: |
56 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 56 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
57 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 57 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
58 | 58 |
59 private: | 59 private: |
60 // Gets the size of the separator, including padding. | 60 // Gets the size of the separator, including padding. |
(...skipping 26 matching lines...) Expand all Loading... |
87 // Animation that helps us change size smoothly as more data comes in. | 87 // Animation that helps us change size smoothly as more data comes in. |
88 ui::SlideAnimation resize_animation_; | 88 ui::SlideAnimation resize_animation_; |
89 | 89 |
90 // The height of the info bubble at the start of the resize animation. | 90 // The height of the info bubble at the start of the resize animation. |
91 int animation_start_height_; | 91 int animation_start_height_; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); | 93 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); |
94 }; | 94 }; |
95 | 95 |
96 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ | 96 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ |
OLD | NEW |