OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "views/widget/widget_delegate.h" | 5 #include "views/widget/widget_delegate.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "views/view.h" | 8 #include "views/view.h" |
9 #include "views/views_delegate.h" | 9 #include "views/views_delegate.h" |
10 #include "views/widget/widget.h" | 10 #include "views/widget/widget.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 } | 29 } |
30 | 30 |
31 View* WidgetDelegate::GetInitiallyFocusedView() { | 31 View* WidgetDelegate::GetInitiallyFocusedView() { |
32 return NULL; | 32 return NULL; |
33 } | 33 } |
34 | 34 |
35 DialogDelegate* WidgetDelegate::AsDialogDelegate() { | 35 DialogDelegate* WidgetDelegate::AsDialogDelegate() { |
36 return NULL; | 36 return NULL; |
37 } | 37 } |
38 | 38 |
39 BubbleDelegate* WidgetDelegate::AsBubbleDelegate() { | |
40 return NULL; | |
41 } | |
42 | |
43 bool WidgetDelegate::CanResize() const { | 39 bool WidgetDelegate::CanResize() const { |
44 return false; | 40 return false; |
45 } | 41 } |
46 | 42 |
47 bool WidgetDelegate::CanMaximize() const { | 43 bool WidgetDelegate::CanMaximize() const { |
48 return false; | 44 return false; |
49 } | 45 } |
50 | 46 |
51 bool WidgetDelegate::CanActivate() const { | 47 bool WidgetDelegate::CanActivate() const { |
52 return true; | 48 return true; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 152 |
157 Widget* WidgetDelegateView::GetWidget() { | 153 Widget* WidgetDelegateView::GetWidget() { |
158 return View::GetWidget(); | 154 return View::GetWidget(); |
159 } | 155 } |
160 | 156 |
161 const Widget* WidgetDelegateView::GetWidget() const { | 157 const Widget* WidgetDelegateView::GetWidget() const { |
162 return View::GetWidget(); | 158 return View::GetWidget(); |
163 } | 159 } |
164 | 160 |
165 } // namespace views | 161 } // namespace views |
OLD | NEW |