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 16 matching lines...) Expand all Loading... |
27 public gfx::AnimationDelegate, | 27 public gfx::AnimationDelegate, |
28 public WidgetObserver { | 28 public WidgetObserver { |
29 public: | 29 public: |
30 BubbleDelegateView(); | 30 BubbleDelegateView(); |
31 BubbleDelegateView(View* anchor_view, BubbleBorder::Arrow arrow); | 31 BubbleDelegateView(View* anchor_view, BubbleBorder::Arrow arrow); |
32 virtual ~BubbleDelegateView(); | 32 virtual ~BubbleDelegateView(); |
33 | 33 |
34 // Create and initialize the bubble Widget(s) with proper bounds. | 34 // Create and initialize the bubble Widget(s) with proper bounds. |
35 static Widget* CreateBubble(BubbleDelegateView* bubble_delegate); | 35 static Widget* CreateBubble(BubbleDelegateView* bubble_delegate); |
36 | 36 |
37 // WidgetDelegate overrides: | 37 // WidgetDelegateView overrides: |
38 virtual BubbleDelegateView* AsBubbleDelegate() OVERRIDE; | 38 virtual BubbleDelegateView* AsBubbleDelegate() OVERRIDE; |
39 virtual bool CanActivate() const OVERRIDE; | 39 virtual bool CanActivate() const OVERRIDE; |
40 virtual bool ShouldShowCloseButton() const OVERRIDE; | 40 virtual bool ShouldShowCloseButton() const OVERRIDE; |
41 virtual View* GetContentsView() OVERRIDE; | 41 virtual View* GetContentsView() OVERRIDE; |
42 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE; | 42 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE; |
| 43 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
43 | 44 |
44 // WidgetObserver overrides: | 45 // WidgetObserver overrides: |
45 virtual void OnWidgetDestroying(Widget* widget) OVERRIDE; | 46 virtual void OnWidgetDestroying(Widget* widget) OVERRIDE; |
46 virtual void OnWidgetVisibilityChanging(Widget* widget, bool visible) | 47 virtual void OnWidgetVisibilityChanging(Widget* widget, bool visible) |
47 OVERRIDE; | 48 OVERRIDE; |
48 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) | 49 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) |
49 OVERRIDE; | 50 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; |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 225 |
225 // Parent native window of the bubble. | 226 // Parent native window of the bubble. |
226 gfx::NativeView parent_window_; | 227 gfx::NativeView parent_window_; |
227 | 228 |
228 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); | 229 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); |
229 }; | 230 }; |
230 | 231 |
231 } // namespace views | 232 } // namespace views |
232 | 233 |
233 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ | 234 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ |
OLD | NEW |