| 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/base/animation/animation_delegate.h" | 9 #include "ui/base/animation/animation_delegate.h" |
| 10 #include "ui/views/bubble/bubble_border.h" | 10 #include "ui/views/bubble/bubble_border.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 BubbleDelegateView(); | 34 BubbleDelegateView(); |
| 35 BubbleDelegateView(View* anchor_view, BubbleBorder::Arrow arrow); | 35 BubbleDelegateView(View* anchor_view, BubbleBorder::Arrow arrow); |
| 36 virtual ~BubbleDelegateView(); | 36 virtual ~BubbleDelegateView(); |
| 37 | 37 |
| 38 // Create and initialize the bubble Widget(s) with proper bounds. | 38 // Create and initialize the bubble Widget(s) with proper bounds. |
| 39 static Widget* CreateBubble(BubbleDelegateView* bubble_delegate); | 39 static Widget* CreateBubble(BubbleDelegateView* bubble_delegate); |
| 40 | 40 |
| 41 // WidgetDelegate overrides: | 41 // WidgetDelegate overrides: |
| 42 virtual BubbleDelegateView* AsBubbleDelegate() OVERRIDE; | 42 virtual BubbleDelegateView* AsBubbleDelegate() OVERRIDE; |
| 43 virtual bool CanActivate() const OVERRIDE; | 43 virtual bool CanActivate() const OVERRIDE; |
| 44 virtual bool ShouldShowCloseButton() const OVERRIDE; |
| 44 virtual View* GetContentsView() OVERRIDE; | 45 virtual View* GetContentsView() OVERRIDE; |
| 45 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE; | 46 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE; |
| 46 | 47 |
| 47 // WidgetObserver overrides: | 48 // WidgetObserver overrides: |
| 48 virtual void OnWidgetDestroying(Widget* widget) OVERRIDE; | 49 virtual void OnWidgetDestroying(Widget* widget) OVERRIDE; |
| 49 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) OVERRIDE; | 50 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) OVERRIDE; |
| 50 virtual void OnWidgetActivationChanged(Widget* widget, bool active) OVERRIDE; | 51 virtual void OnWidgetActivationChanged(Widget* widget, bool active) OVERRIDE; |
| 51 virtual void OnWidgetBoundsChanged(Widget* widget, | 52 virtual void OnWidgetBoundsChanged(Widget* widget, |
| 52 const gfx::Rect& new_bounds) OVERRIDE; | 53 const gfx::Rect& new_bounds) OVERRIDE; |
| 53 | 54 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 213 |
| 213 // Parent native window of the bubble. | 214 // Parent native window of the bubble. |
| 214 gfx::NativeView parent_window_; | 215 gfx::NativeView parent_window_; |
| 215 | 216 |
| 216 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); | 217 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); |
| 217 }; | 218 }; |
| 218 | 219 |
| 219 } // namespace views | 220 } // namespace views |
| 220 | 221 |
| 221 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ | 222 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ |
| OLD | NEW |