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

Side by Side Diff: ui/views/widget/widget_delegate.cc

Issue 405873003: Changed AppListDialogContentsView to extend DialogDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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/widget/widget_delegate.h" 5 #include "ui/views/widget/widget_delegate.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "ui/gfx/image/image_skia.h" 8 #include "ui/gfx/image/image_skia.h"
9 #include "ui/views/bubble/bubble_delegate.h" 9 #include "ui/views/bubble/bubble_delegate.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 53
54 bool WidgetDelegate::CanActivate() const { 54 bool WidgetDelegate::CanActivate() const {
55 return can_activate_; 55 return can_activate_;
56 } 56 }
57 57
58 ui::ModalType WidgetDelegate::GetModalType() const { 58 ui::ModalType WidgetDelegate::GetModalType() const {
59 return ui::MODAL_TYPE_NONE; 59 return ui::MODAL_TYPE_NONE;
60 } 60 }
61 61
62 bool WidgetDelegate::IsDialogBox() {
63 // 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
64 // DialogDelegate children to return true.
65 return !!AsDialogDelegate();
66 }
67
62 ui::AXRole WidgetDelegate::GetAccessibleWindowRole() const { 68 ui::AXRole WidgetDelegate::GetAccessibleWindowRole() const {
63 return ui::AX_ROLE_WINDOW; 69 return ui::AX_ROLE_WINDOW;
64 } 70 }
65 71
66 base::string16 WidgetDelegate::GetAccessibleWindowTitle() const { 72 base::string16 WidgetDelegate::GetAccessibleWindowTitle() const {
67 return GetWindowTitle(); 73 return GetWindowTitle();
68 } 74 }
69 75
70 base::string16 WidgetDelegate::GetWindowTitle() const { 76 base::string16 WidgetDelegate::GetWindowTitle() const {
71 return base::string16(); 77 return base::string16();
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 198
193 Widget* WidgetDelegateView::GetWidget() { 199 Widget* WidgetDelegateView::GetWidget() {
194 return View::GetWidget(); 200 return View::GetWidget();
195 } 201 }
196 202
197 const Widget* WidgetDelegateView::GetWidget() const { 203 const Widget* WidgetDelegateView::GetWidget() const {
198 return View::GetWidget(); 204 return View::GetWidget();
199 } 205 }
200 206
201 } // namespace views 207 } // namespace views
OLDNEW
« ui/views/widget/widget_delegate.h ('K') | « ui/views/widget/widget_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698