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" |
11 #include "ui/views/widget/widget_delegate.h" | 11 #include "ui/views/widget/widget_delegate.h" |
12 #include "ui/views/widget/widget_observer.h" | 12 #include "ui/views/widget/widget_observer.h" |
13 | 13 |
14 namespace gfx { | 14 namespace gfx { |
15 class FontList; | 15 class FontList; |
16 class Rect; | 16 class Rect; |
17 } | 17 } |
18 | 18 |
19 namespace views { | 19 namespace views { |
20 | 20 |
21 class BubbleFrameView; | 21 class BubbleFrameView; |
22 | 22 |
23 // BubbleDelegateView creates frame and client views for bubble Widgets. | 23 // BubbleDelegateView creates frame and client views for bubble Widgets. |
24 // BubbleDelegateView itself is the client's contents view. | 24 // BubbleDelegateView itself is the client's contents view. |
25 // Note for those adding subclasses, to have your view read in its entirety by | |
msw
2015/04/07 21:36:06
You can leave this comment with the NotifyAccessib
David Tseng
2015/04/07 21:50:53
Done.
| |
26 // accessibility tools, set your view to ui::AX_ROLE_ALERT_DIALOG. See | |
27 //http://crbug.com/474622 for further context. | |
25 class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView, | 28 class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView, |
26 public WidgetObserver { | 29 public WidgetObserver { |
27 public: | 30 public: |
28 // Internal class name. | 31 // Internal class name. |
29 static const char kViewClassName[]; | 32 static const char kViewClassName[]; |
30 | 33 |
31 BubbleDelegateView(); | 34 BubbleDelegateView(); |
32 BubbleDelegateView(View* anchor_view, BubbleBorder::Arrow arrow); | 35 BubbleDelegateView(View* anchor_view, BubbleBorder::Arrow arrow); |
33 ~BubbleDelegateView() override; | 36 ~BubbleDelegateView() override; |
34 | 37 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
191 | 194 |
192 // Parent native window of the bubble. | 195 // Parent native window of the bubble. |
193 gfx::NativeView parent_window_; | 196 gfx::NativeView parent_window_; |
194 | 197 |
195 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); | 198 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); |
196 }; | 199 }; |
197 | 200 |
198 } // namespace views | 201 } // namespace views |
199 | 202 |
200 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ | 203 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ |
OLD | NEW |