Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(845)

Side by Side Diff: ui/views/window/dialog_delegate.cc

Issue 2660553005: Harmony - convert hung renderer dialog. (Closed)
Patch Set: remove test friends Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« ui/views/window/dialog_client_view.cc ('K') | « ui/views/window/dialog_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698