| 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 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 984 } | 984 } |
| 985 | 985 |
| 986 void Widget::OnRootViewLayout() { | 986 void Widget::OnRootViewLayout() { |
| 987 native_widget_->OnRootViewLayout(); | 987 native_widget_->OnRootViewLayout(); |
| 988 } | 988 } |
| 989 | 989 |
| 990 bool Widget::IsTranslucentWindowOpacitySupported() const { | 990 bool Widget::IsTranslucentWindowOpacitySupported() const { |
| 991 return native_widget_->IsTranslucentWindowOpacitySupported(); | 991 return native_widget_->IsTranslucentWindowOpacitySupported(); |
| 992 } | 992 } |
| 993 | 993 |
| 994 void Widget::OnSizeConstraintsChanged() { |
| 995 native_widget_->OnSizeConstraintsChanged(); |
| 996 non_client_view_->ResetWindowControls(); |
| 997 } |
| 998 |
| 994 void Widget::OnOwnerClosing() { | 999 void Widget::OnOwnerClosing() { |
| 995 } | 1000 } |
| 996 | 1001 |
| 997 //////////////////////////////////////////////////////////////////////////////// | 1002 //////////////////////////////////////////////////////////////////////////////// |
| 998 // Widget, NativeWidgetDelegate implementation: | 1003 // Widget, NativeWidgetDelegate implementation: |
| 999 | 1004 |
| 1000 bool Widget::IsModal() const { | 1005 bool Widget::IsModal() const { |
| 1001 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE; | 1006 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE; |
| 1002 } | 1007 } |
| 1003 | 1008 |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1516 | 1521 |
| 1517 //////////////////////////////////////////////////////////////////////////////// | 1522 //////////////////////////////////////////////////////////////////////////////// |
| 1518 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1523 // internal::NativeWidgetPrivate, NativeWidget implementation: |
| 1519 | 1524 |
| 1520 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1525 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
| 1521 return this; | 1526 return this; |
| 1522 } | 1527 } |
| 1523 | 1528 |
| 1524 } // namespace internal | 1529 } // namespace internal |
| 1525 } // namespace views | 1530 } // namespace views |
| OLD | NEW |