Chromium Code Reviews| Index: ui/views/widget/widget_delegate.cc |
| diff --git a/ui/views/widget/widget_delegate.cc b/ui/views/widget/widget_delegate.cc |
| index 7e1f67e19c3bdfddfcd5917ba409016d83505692..835af62229c076d102c95a6f33425e97610dec75 100644 |
| --- a/ui/views/widget/widget_delegate.cc |
| +++ b/ui/views/widget/widget_delegate.cc |
| @@ -59,6 +59,12 @@ ui::ModalType WidgetDelegate::GetModalType() const { |
| return ui::MODAL_TYPE_NONE; |
| } |
| +bool WidgetDelegate::IsDialogBox() { |
| + // TODO(sashab): Return false by default here, and add an override to all |
|
tapted
2014/07/21 00:34:07
I think this CL is small enough to do this now -
sashab
2014/07/21 03:36:21
Oh, I didn't think of that, for some reason :) Don
|
| + // DialogDelegate children to return true. |
| + return !!AsDialogDelegate(); |
| +} |
| + |
| ui::AXRole WidgetDelegate::GetAccessibleWindowRole() const { |
| return ui::AX_ROLE_WINDOW; |
| } |