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/views/bubble/bubble_border.h" | 9 #include "ui/views/bubble/bubble_border.h" |
10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 // WidgetObserver overrides: | 42 // WidgetObserver overrides: |
43 virtual void OnWidgetDestroying(Widget* widget) OVERRIDE; | 43 virtual void OnWidgetDestroying(Widget* widget) OVERRIDE; |
44 virtual void OnWidgetVisibilityChanging(Widget* widget, bool visible) | 44 virtual void OnWidgetVisibilityChanging(Widget* widget, bool visible) |
45 OVERRIDE; | 45 OVERRIDE; |
46 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) | 46 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) |
47 OVERRIDE; | 47 OVERRIDE; |
48 virtual void OnWidgetActivationChanged(Widget* widget, bool active) OVERRIDE; | 48 virtual void OnWidgetActivationChanged(Widget* widget, bool active) OVERRIDE; |
49 virtual void OnWidgetBoundsChanged(Widget* widget, | 49 virtual void OnWidgetBoundsChanged(Widget* widget, |
50 const gfx::Rect& new_bounds) OVERRIDE; | 50 const gfx::Rect& new_bounds) OVERRIDE; |
51 | 51 |
52 // Return true to show the bubble title in the base font | |
53 // (default is MediumFont). | |
54 virtual bool ShouldShowWindowTitleInBaseFont() const; | |
msw
2014/06/10 18:16:05
How about GetTitleFontList?
| |
55 | |
52 bool close_on_esc() const { return close_on_esc_; } | 56 bool close_on_esc() const { return close_on_esc_; } |
53 void set_close_on_esc(bool close_on_esc) { close_on_esc_ = close_on_esc; } | 57 void set_close_on_esc(bool close_on_esc) { close_on_esc_ = close_on_esc; } |
54 | 58 |
55 bool close_on_deactivate() const { return close_on_deactivate_; } | 59 bool close_on_deactivate() const { return close_on_deactivate_; } |
56 void set_close_on_deactivate(bool close) { close_on_deactivate_ = close; } | 60 void set_close_on_deactivate(bool close) { close_on_deactivate_ = close; } |
57 | 61 |
58 View* GetAnchorView() const; | 62 View* GetAnchorView() const; |
59 Widget* anchor_widget() const { return anchor_widget_; } | 63 Widget* anchor_widget() const { return anchor_widget_; } |
60 | 64 |
61 // The anchor rect is used in the absence of an assigned anchor view. | 65 // The anchor rect is used in the absence of an assigned anchor view. |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
191 | 195 |
192 // Parent native window of the bubble. | 196 // Parent native window of the bubble. |
193 gfx::NativeView parent_window_; | 197 gfx::NativeView parent_window_; |
194 | 198 |
195 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); | 199 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); |
196 }; | 200 }; |
197 | 201 |
198 } // namespace views | 202 } // namespace views |
199 | 203 |
200 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ | 204 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ |
OLD | NEW |