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_BROWSER_BUBBLE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BROWSER_BUBBLE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_BUBBLE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_BUBBLE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/views/bubble/bubble_border.h" | 9 #include "ui/views/bubble/bubble_border.h" |
| 10 #include "ui/views/widget/widget.h" |
10 #include "views/view.h" | 11 #include "views/view.h" |
11 #include "views/widget/widget.h" | |
12 | 12 |
13 class Browser; | 13 class Browser; |
14 class BrowserBubbleHost; | 14 class BrowserBubbleHost; |
15 | 15 |
16 // A class for creating a floating window that is "attached" to a particular | 16 // A class for creating a floating window that is "attached" to a particular |
17 // Browser. If you don't install a delegate, the bubble will hide | 17 // Browser. If you don't install a delegate, the bubble will hide |
18 // automatically when the browser moves. The bubble is only shown manually. | 18 // automatically when the browser moves. The bubble is only shown manually. |
19 // Users are expected to delete the bubble when finished with it. | 19 // Users are expected to delete the bubble when finished with it. |
20 // Class assumes that RTL related mirroring is done by the view. | 20 // Class assumes that RTL related mirroring is done by the view. |
21 class BrowserBubble { | 21 class BrowserBubble { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // Is the bubble attached to a Browser window. | 133 // Is the bubble attached to a Browser window. |
134 bool attached_; | 134 bool attached_; |
135 | 135 |
136 // Non-owning pointer to the host of this bubble. | 136 // Non-owning pointer to the host of this bubble. |
137 BrowserBubbleHost* bubble_host_; | 137 BrowserBubbleHost* bubble_host_; |
138 | 138 |
139 DISALLOW_COPY_AND_ASSIGN(BrowserBubble); | 139 DISALLOW_COPY_AND_ASSIGN(BrowserBubble); |
140 }; | 140 }; |
141 | 141 |
142 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_BUBBLE_H_ | 142 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_BUBBLE_H_ |
OLD | NEW |