| 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.h" | 5 #include "ui/views/widget/widget.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 return native_widget_->GetName(); | 1000 return native_widget_->GetName(); |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 //////////////////////////////////////////////////////////////////////////////// | 1003 //////////////////////////////////////////////////////////////////////////////// |
| 1004 // Widget, NativeWidgetDelegate implementation: | 1004 // Widget, NativeWidgetDelegate implementation: |
| 1005 | 1005 |
| 1006 bool Widget::IsModal() const { | 1006 bool Widget::IsModal() const { |
| 1007 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE; | 1007 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE; |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 bool Widget::IsModalTypeChild() const { |
| 1011 return widget_delegate_->GetModalType() == ui::MODAL_TYPE_CHILD; |
| 1012 } |
| 1013 |
| 1010 bool Widget::IsDialogBox() const { | 1014 bool Widget::IsDialogBox() const { |
| 1011 return !!widget_delegate_->AsDialogDelegate(); | 1015 return !!widget_delegate_->AsDialogDelegate(); |
| 1012 } | 1016 } |
| 1013 | 1017 |
| 1014 bool Widget::CanActivate() const { | 1018 bool Widget::CanActivate() const { |
| 1015 return widget_delegate_->CanActivate(); | 1019 return widget_delegate_->CanActivate(); |
| 1016 } | 1020 } |
| 1017 | 1021 |
| 1018 bool Widget::IsAlwaysRenderAsActive() const { | 1022 bool Widget::IsAlwaysRenderAsActive() const { |
| 1019 return always_render_as_active_; | 1023 return always_render_as_active_; |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1487 | 1491 |
| 1488 //////////////////////////////////////////////////////////////////////////////// | 1492 //////////////////////////////////////////////////////////////////////////////// |
| 1489 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1493 // internal::NativeWidgetPrivate, NativeWidget implementation: |
| 1490 | 1494 |
| 1491 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1495 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
| 1492 return this; | 1496 return this; |
| 1493 } | 1497 } |
| 1494 | 1498 |
| 1495 } // namespace internal | 1499 } // namespace internal |
| 1496 } // namespace views | 1500 } // namespace views |
| OLD | NEW |