| 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 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 root_view_->OnMouseMoved(mouse_event); | 977 root_view_->OnMouseMoved(mouse_event); |
| 978 } | 978 } |
| 979 | 979 |
| 980 void Widget::OnRootViewLayout() { | 980 void Widget::OnRootViewLayout() { |
| 981 native_widget_->OnRootViewLayout(); | 981 native_widget_->OnRootViewLayout(); |
| 982 } | 982 } |
| 983 | 983 |
| 984 void Widget::OnOwnerClosing() { | 984 void Widget::OnOwnerClosing() { |
| 985 } | 985 } |
| 986 | 986 |
| 987 bool Widget::CanHaveAlphaEnabled() const { |
| 988 return native_widget_->CanHaveAlphaEnabled(); |
| 989 } |
| 987 //////////////////////////////////////////////////////////////////////////////// | 990 //////////////////////////////////////////////////////////////////////////////// |
| 988 // Widget, NativeWidgetDelegate implementation: | 991 // Widget, NativeWidgetDelegate implementation: |
| 989 | 992 |
| 990 bool Widget::IsModal() const { | 993 bool Widget::IsModal() const { |
| 991 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE; | 994 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE; |
| 992 } | 995 } |
| 993 | 996 |
| 994 bool Widget::IsDialogBox() const { | 997 bool Widget::IsDialogBox() const { |
| 995 return !!widget_delegate_->AsDialogDelegate(); | 998 return !!widget_delegate_->AsDialogDelegate(); |
| 996 } | 999 } |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1506 | 1509 |
| 1507 //////////////////////////////////////////////////////////////////////////////// | 1510 //////////////////////////////////////////////////////////////////////////////// |
| 1508 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1511 // internal::NativeWidgetPrivate, NativeWidget implementation: |
| 1509 | 1512 |
| 1510 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1513 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
| 1511 return this; | 1514 return this; |
| 1512 } | 1515 } |
| 1513 | 1516 |
| 1514 } // namespace internal | 1517 } // namespace internal |
| 1515 } // namespace views | 1518 } // namespace views |
| OLD | NEW |