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/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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 | 45 |
46 bool WidgetDelegate::CanResize() const { | 46 bool WidgetDelegate::CanResize() const { |
47 return false; | 47 return false; |
48 } | 48 } |
49 | 49 |
50 bool WidgetDelegate::CanMaximize() const { | 50 bool WidgetDelegate::CanMaximize() const { |
51 return false; | 51 return false; |
52 } | 52 } |
53 | 53 |
| 54 bool WidgetDelegate::CanMinimize() const { |
| 55 return false; |
| 56 } |
| 57 |
54 bool WidgetDelegate::CanActivate() const { | 58 bool WidgetDelegate::CanActivate() const { |
55 return can_activate_; | 59 return can_activate_; |
56 } | 60 } |
57 | 61 |
58 ui::ModalType WidgetDelegate::GetModalType() const { | 62 ui::ModalType WidgetDelegate::GetModalType() const { |
59 return ui::MODAL_TYPE_NONE; | 63 return ui::MODAL_TYPE_NONE; |
60 } | 64 } |
61 | 65 |
62 ui::AXRole WidgetDelegate::GetAccessibleWindowRole() const { | 66 ui::AXRole WidgetDelegate::GetAccessibleWindowRole() const { |
63 return ui::AX_ROLE_WINDOW; | 67 return ui::AX_ROLE_WINDOW; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 196 |
193 Widget* WidgetDelegateView::GetWidget() { | 197 Widget* WidgetDelegateView::GetWidget() { |
194 return View::GetWidget(); | 198 return View::GetWidget(); |
195 } | 199 } |
196 | 200 |
197 const Widget* WidgetDelegateView::GetWidget() const { | 201 const Widget* WidgetDelegateView::GetWidget() const { |
198 return View::GetWidget(); | 202 return View::GetWidget(); |
199 } | 203 } |
200 | 204 |
201 } // namespace views | 205 } // namespace views |
OLD | NEW |