| 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/view.h" | 9 #include "ui/views/view.h" |
| 10 #include "ui/views/views_delegate.h" | 10 #include "ui/views/views_delegate.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 } | 51 } |
| 52 | 52 |
| 53 bool WidgetDelegate::CanMinimize() const { | 53 bool WidgetDelegate::CanMinimize() const { |
| 54 return false; | 54 return false; |
| 55 } | 55 } |
| 56 | 56 |
| 57 bool WidgetDelegate::CanActivate() const { | 57 bool WidgetDelegate::CanActivate() const { |
| 58 return can_activate_; | 58 return can_activate_; |
| 59 } | 59 } |
| 60 | 60 |
| 61 bool WidgetDelegate::IsTopLevel() const { |
| 62 return is_top_level_; |
| 63 } |
| 64 |
| 61 ui::ModalType WidgetDelegate::GetModalType() const { | 65 ui::ModalType WidgetDelegate::GetModalType() const { |
| 62 return ui::MODAL_TYPE_NONE; | 66 return ui::MODAL_TYPE_NONE; |
| 63 } | 67 } |
| 64 | 68 |
| 65 ui::AXRole WidgetDelegate::GetAccessibleWindowRole() const { | 69 ui::AXRole WidgetDelegate::GetAccessibleWindowRole() const { |
| 66 return ui::AX_ROLE_WINDOW; | 70 return ui::AX_ROLE_WINDOW; |
| 67 } | 71 } |
| 68 | 72 |
| 69 base::string16 WidgetDelegate::GetAccessibleWindowTitle() const { | 73 base::string16 WidgetDelegate::GetAccessibleWindowTitle() const { |
| 70 return GetWindowTitle(); | 74 return GetWindowTitle(); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 210 |
| 207 const Widget* WidgetDelegateView::GetWidget() const { | 211 const Widget* WidgetDelegateView::GetWidget() const { |
| 208 return View::GetWidget(); | 212 return View::GetWidget(); |
| 209 } | 213 } |
| 210 | 214 |
| 211 const char* WidgetDelegateView::GetClassName() const { | 215 const char* WidgetDelegateView::GetClassName() const { |
| 212 return kViewClassName; | 216 return kViewClassName; |
| 213 } | 217 } |
| 214 | 218 |
| 215 } // namespace views | 219 } // namespace views |
| OLD | NEW |