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/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "base/logging.h" | 8 #include "base/logging.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 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
995 } | 995 } |
996 | 996 |
997 //////////////////////////////////////////////////////////////////////////////// | 997 //////////////////////////////////////////////////////////////////////////////// |
998 // Widget, NativeWidgetDelegate implementation: | 998 // Widget, NativeWidgetDelegate implementation: |
999 | 999 |
1000 bool Widget::IsModal() const { | 1000 bool Widget::IsModal() const { |
1001 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE; | 1001 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE; |
1002 } | 1002 } |
1003 | 1003 |
1004 bool Widget::IsDialogBox() const { | 1004 bool Widget::IsDialogBox() const { |
1005 return !!widget_delegate_->AsDialogDelegate(); | 1005 return widget_delegate_->IsDialogBox(); |
1006 } | 1006 } |
1007 | 1007 |
1008 bool Widget::CanActivate() const { | 1008 bool Widget::CanActivate() const { |
1009 return widget_delegate_->CanActivate(); | 1009 return widget_delegate_->CanActivate(); |
1010 } | 1010 } |
1011 | 1011 |
1012 bool Widget::IsInactiveRenderingDisabled() const { | 1012 bool Widget::IsInactiveRenderingDisabled() const { |
1013 return disable_inactive_rendering_; | 1013 return disable_inactive_rendering_; |
1014 } | 1014 } |
1015 | 1015 |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1511 | 1511 |
1512 //////////////////////////////////////////////////////////////////////////////// | 1512 //////////////////////////////////////////////////////////////////////////////// |
1513 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1513 // internal::NativeWidgetPrivate, NativeWidget implementation: |
1514 | 1514 |
1515 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1515 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
1516 return this; | 1516 return this; |
1517 } | 1517 } |
1518 | 1518 |
1519 } // namespace internal | 1519 } // namespace internal |
1520 } // namespace views | 1520 } // namespace views |
OLD | NEW |