| 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 #include "ui/views/window/dialog_delegate.h" | 5 #include "ui/views/window/dialog_delegate.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 } | 90 } |
| 91 | 91 |
| 92 View* DialogDelegate::CreateExtraView() { | 92 View* DialogDelegate::CreateExtraView() { |
| 93 return NULL; | 93 return NULL; |
| 94 } | 94 } |
| 95 | 95 |
| 96 bool DialogDelegate::GetExtraViewPadding(int* padding) { | 96 bool DialogDelegate::GetExtraViewPadding(int* padding) { |
| 97 return false; | 97 return false; |
| 98 } | 98 } |
| 99 | 99 |
| 100 bool DialogDelegate::GroupExtraViewWithButtons() const { |
| 101 return false; |
| 102 } |
| 103 |
| 100 View* DialogDelegate::CreateFootnoteView() { | 104 View* DialogDelegate::CreateFootnoteView() { |
| 101 return NULL; | 105 return NULL; |
| 102 } | 106 } |
| 103 | 107 |
| 104 bool DialogDelegate::Cancel() { | 108 bool DialogDelegate::Cancel() { |
| 105 return true; | 109 return true; |
| 106 } | 110 } |
| 107 | 111 |
| 108 bool DialogDelegate::Accept() { | 112 bool DialogDelegate::Accept() { |
| 109 return true; | 113 return true; |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 node_data->role = ui::AX_ROLE_DIALOG; | 265 node_data->role = ui::AX_ROLE_DIALOG; |
| 262 } | 266 } |
| 263 | 267 |
| 264 void DialogDelegateView::ViewHierarchyChanged( | 268 void DialogDelegateView::ViewHierarchyChanged( |
| 265 const ViewHierarchyChangedDetails& details) { | 269 const ViewHierarchyChangedDetails& details) { |
| 266 if (details.is_add && details.child == this && GetWidget()) | 270 if (details.is_add && details.child == this && GetWidget()) |
| 267 NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, true); | 271 NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, true); |
| 268 } | 272 } |
| 269 | 273 |
| 270 } // namespace views | 274 } // namespace views |
| OLD | NEW |