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_INFO_BUBBLE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFO_BUBBLE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_INFO_BUBBLE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_INFO_BUBBLE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include "chrome/browser/ui/views/bubble_border.h" |
9 #include "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
10 #include "ui/base/animation/animation_delegate.h" | 11 #include "ui/base/animation/animation_delegate.h" |
11 #include "views/accelerator.h" | 12 #include "views/accelerator.h" |
12 #include "views/view.h" | 13 #include "views/view.h" |
13 #include "chrome/browser/ui/views/bubble_border.h" | |
14 | 14 |
15 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
16 #include "views/widget/widget_win.h" | 16 #include "views/widget/widget_win.h" |
17 #elif defined(OS_LINUX) | 17 #elif defined(OS_LINUX) |
18 #include "views/widget/widget_gtk.h" | 18 #include "views/widget/widget_gtk.h" |
19 #endif | 19 #endif |
20 | 20 |
21 // InfoBubble is used to display an arbitrary view above all other windows. | 21 // InfoBubble is used to display an arbitrary view above all other windows. |
22 // Think of InfoBubble as a tooltip that allows you to embed an arbitrary view | 22 // Think of InfoBubble as a tooltip that allows you to embed an arbitrary view |
23 // in the tooltip. Additionally the InfoBubble renders an arrow pointing at | 23 // in the tooltip. Additionally the InfoBubble renders an arrow pointing at |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 | 313 |
314 gfx::Rect position_relative_to_; | 314 gfx::Rect position_relative_to_; |
315 BubbleBorder::ArrowLocation arrow_location_; | 315 BubbleBorder::ArrowLocation arrow_location_; |
316 | 316 |
317 views::View* contents_; | 317 views::View* contents_; |
318 | 318 |
319 DISALLOW_COPY_AND_ASSIGN(InfoBubble); | 319 DISALLOW_COPY_AND_ASSIGN(InfoBubble); |
320 }; | 320 }; |
321 | 321 |
322 #endif // CHROME_BROWSER_UI_VIEWS_INFO_BUBBLE_H_ | 322 #endif // CHROME_BROWSER_UI_VIEWS_INFO_BUBBLE_H_ |
OLD | NEW |