| 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_BUBBLE_BUBBLE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BUBBLE_BUBBLE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_BUBBLE_BUBBLE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BUBBLE_BUBBLE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "ui/base/animation/animation_delegate.h" | 10 #include "ui/base/animation/animation_delegate.h" |
| 11 #include "ui/base/models/accelerator.h" | 11 #include "ui/base/models/accelerator.h" |
| 12 #include "ui/views/bubble/bubble_border.h" | 12 #include "ui/views/bubble/bubble_border.h" |
| 13 #include "views/view.h" | 13 #include "views/view.h" |
| 14 | 14 |
| 15 #if defined(USE_AURA) | 15 #if defined(USE_AURA) |
| 16 #include "ui/views/widget/native_widget_aura.h" | 16 #include "views/widget/native_widget_aura.h" |
| 17 #elif defined(OS_WIN) | 17 #elif defined(OS_WIN) |
| 18 #include "ui/views/widget/native_widget_win.h" | 18 #include "views/widget/native_widget_win.h" |
| 19 #elif defined(TOOLKIT_USES_GTK) | 19 #elif defined(TOOLKIT_USES_GTK) |
| 20 #include "ui/views/widget/native_widget_gtk.h" | 20 #include "views/widget/native_widget_gtk.h" |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 // Bubble is used to display an arbitrary view above all other windows. | 23 // Bubble is used to display an arbitrary view above all other windows. |
| 24 // Think of Bubble as a tooltip that allows you to embed an arbitrary view | 24 // Think of Bubble as a tooltip that allows you to embed an arbitrary view |
| 25 // in the tooltip. Additionally the Bubble renders an arrow pointing at | 25 // in the tooltip. Additionally the Bubble renders an arrow pointing at |
| 26 // the region the info bubble is providing the information about. | 26 // the region the info bubble is providing the information about. |
| 27 // | 27 // |
| 28 // To use an Bubble, invoke Show() and it'll take care of the rest. The Bubble | 28 // To use an Bubble, invoke Show() and it'll take care of the rest. The Bubble |
| 29 // insets the contents for you, so the contents typically shouldn't have any | 29 // insets the contents for you, so the contents typically shouldn't have any |
| 30 // additional margins. | 30 // additional margins. |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 views::View* contents_; | 259 views::View* contents_; |
| 260 | 260 |
| 261 bool accelerator_registered_; | 261 bool accelerator_registered_; |
| 262 | 262 |
| 263 ObserverList<Observer> observer_list_; | 263 ObserverList<Observer> observer_list_; |
| 264 | 264 |
| 265 DISALLOW_COPY_AND_ASSIGN(Bubble); | 265 DISALLOW_COPY_AND_ASSIGN(Bubble); |
| 266 }; | 266 }; |
| 267 | 267 |
| 268 #endif // CHROME_BROWSER_UI_VIEWS_BUBBLE_BUBBLE_H_ | 268 #endif // CHROME_BROWSER_UI_VIEWS_BUBBLE_BUBBLE_H_ |
| OLD | NEW |