OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_VIEWS_BROWSER_BUBBLE_ | 5 #ifndef CHROME_BROWSER_VIEWS_BROWSER_BUBBLE_ |
6 #define CHROME_BROWSER_VIEWS_BROWSER_BUBBLE_ | 6 #define CHROME_BROWSER_VIEWS_BROWSER_BUBBLE_ |
7 | 7 |
8 #include "views/view.h" | 8 #include "views/view.h" |
9 #include "views/widget/widget.h" | 9 #include "views/widget/widget.h" |
10 | 10 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 private: | 84 private: |
85 // The frame that this bubble is attached to. | 85 // The frame that this bubble is attached to. |
86 views::Widget* frame_; | 86 views::Widget* frame_; |
87 gfx::NativeView frame_native_view_; | 87 gfx::NativeView frame_native_view_; |
88 | 88 |
89 // The view that is displayed in this bubble. | 89 // The view that is displayed in this bubble. |
90 views::View* view_; | 90 views::View* view_; |
91 | 91 |
92 // The widget that this bubble is in. | 92 // The widget that this bubble is in. |
93 scoped_ptr<views::Widget> popup_; | 93 views::Widget* popup_; |
94 | 94 |
95 // The bounds relative to the frame. | 95 // The bounds relative to the frame. |
96 gfx::Rect bounds_; | 96 gfx::Rect bounds_; |
97 | 97 |
98 // Current visibility. | 98 // Current visibility. |
99 bool visible_; | 99 bool visible_; |
100 | 100 |
101 // The delegate isn't owned by the bubble. | 101 // The delegate isn't owned by the bubble. |
102 Delegate* delegate_; | 102 Delegate* delegate_; |
103 | 103 |
104 // Is the bubble attached to a Browser window. | 104 // Is the bubble attached to a Browser window. |
105 bool attached_; | 105 bool attached_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(BrowserBubble); | 107 DISALLOW_COPY_AND_ASSIGN(BrowserBubble); |
108 }; | 108 }; |
109 | 109 |
110 #endif // CHROME_BROWSER_VIEWS_BROWSER_BUBBLE_ | 110 #endif // CHROME_BROWSER_VIEWS_BROWSER_BUBBLE_ |
OLD | NEW |