| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ | 5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ |
| 6 #define UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ | 6 #define UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "ui/gfx/animation/animation_delegate.h" | 9 #include "ui/gfx/animation/animation_delegate.h" |
| 10 #include "ui/views/bubble/bubble_border.h" | 10 #include "ui/views/bubble/bubble_border.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 void UpdateColorsFromTheme(const ui::NativeTheme* theme); | 160 void UpdateColorsFromTheme(const ui::NativeTheme* theme); |
| 161 | 161 |
| 162 #if defined(OS_WIN) && !defined(USE_AURA) | 162 #if defined(OS_WIN) && !defined(USE_AURA) |
| 163 // Get bounds for the Windows-only widget that hosts the bubble's contents. | 163 // Get bounds for the Windows-only widget that hosts the bubble's contents. |
| 164 gfx::Rect GetBubbleClientBounds() const; | 164 gfx::Rect GetBubbleClientBounds() const; |
| 165 #endif | 165 #endif |
| 166 | 166 |
| 167 // Handles widget visibility changes. | 167 // Handles widget visibility changes. |
| 168 void HandleVisibilityChanged(Widget* widget, bool visible); | 168 void HandleVisibilityChanged(Widget* widget, bool visible); |
| 169 | 169 |
| 170 // Detach the bubble from the anchor (has no effect if there is no anchor). |
| 171 void DetachFromAnchor(); |
| 172 |
| 170 // Fade animation for bubble. | 173 // Fade animation for bubble. |
| 171 scoped_ptr<gfx::SlideAnimation> fade_animation_; | 174 scoped_ptr<gfx::SlideAnimation> fade_animation_; |
| 172 | 175 |
| 173 // Flags controlling bubble closure on the escape key and deactivation. | 176 // Flags controlling bubble closure on the escape key and deactivation. |
| 174 bool close_on_esc_; | 177 bool close_on_esc_; |
| 175 bool close_on_deactivate_; | 178 bool close_on_deactivate_; |
| 176 | 179 |
| 177 // The view and widget to which this bubble is anchored. | 180 // The view and widget to which this bubble is anchored. |
| 178 View* anchor_view_; | 181 View* anchor_view_; |
| 179 Widget* anchor_widget_; | 182 Widget* anchor_widget_; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 222 |
| 220 // Parent native window of the bubble. | 223 // Parent native window of the bubble. |
| 221 gfx::NativeView parent_window_; | 224 gfx::NativeView parent_window_; |
| 222 | 225 |
| 223 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); | 226 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); |
| 224 }; | 227 }; |
| 225 | 228 |
| 226 } // namespace views | 229 } // namespace views |
| 227 | 230 |
| 228 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ | 231 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ |
| OLD | NEW |