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 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
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" |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 // Show the certificate dialog. | 33 // Show the certificate dialog. |
34 void ShowCertDialog(); | 34 void ShowCertDialog(); |
35 | 35 |
36 // views::View methods: | 36 // views::View methods: |
37 virtual gfx::Size GetPreferredSize() OVERRIDE; | 37 virtual gfx::Size GetPreferredSize() OVERRIDE; |
38 | 38 |
39 // PageInfoModelObserver methods: | 39 // PageInfoModelObserver methods: |
40 virtual void OnPageInfoModelChanged() OVERRIDE; | 40 virtual void OnPageInfoModelChanged() OVERRIDE; |
41 | 41 |
42 // views::BubbleDelegate methods: | |
43 virtual gfx::Rect GetAnchorRect() OVERRIDE; | |
44 | |
45 // views::LinkListener methods: | 42 // views::LinkListener methods: |
46 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 43 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
47 | 44 |
48 // ui::AnimationDelegate methods: | 45 // ui::AnimationDelegate methods: |
49 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 46 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
50 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 47 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
51 | 48 |
52 private: | 49 private: |
53 // Gets the size of the separator, including padding. | 50 // Gets the size of the separator, including padding. |
54 gfx::Size GetSeparatorSize(); | 51 gfx::Size GetSeparatorSize(); |
(...skipping 24 matching lines...) Expand all Loading... |
79 | 76 |
80 // Used for loading pages. | 77 // Used for loading pages. |
81 content::PageNavigator* navigator_; | 78 content::PageNavigator* navigator_; |
82 | 79 |
83 content::WebContents* web_contents_; | 80 content::WebContents* web_contents_; |
84 | 81 |
85 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); | 82 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); |
86 }; | 83 }; |
87 | 84 |
88 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ | 85 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ |
OLD | NEW |