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 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 last_mouse_event_position_, | 980 last_mouse_event_position_, |
981 last_mouse_event_position_, | 981 last_mouse_event_position_, |
982 ui::EF_IS_SYNTHESIZED, 0); | 982 ui::EF_IS_SYNTHESIZED, 0); |
983 root_view_->OnMouseMoved(mouse_event); | 983 root_view_->OnMouseMoved(mouse_event); |
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 { |
| 991 return native_widget_->IsTranslucentWindowOpacitySupported(); |
| 992 } |
| 993 |
990 void Widget::OnOwnerClosing() { | 994 void Widget::OnOwnerClosing() { |
991 } | 995 } |
992 | 996 |
993 //////////////////////////////////////////////////////////////////////////////// | 997 //////////////////////////////////////////////////////////////////////////////// |
994 // Widget, NativeWidgetDelegate implementation: | 998 // Widget, NativeWidgetDelegate implementation: |
995 | 999 |
996 bool Widget::IsModal() const { | 1000 bool Widget::IsModal() const { |
997 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE; | 1001 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE; |
998 } | 1002 } |
999 | 1003 |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1507 | 1511 |
1508 //////////////////////////////////////////////////////////////////////////////// | 1512 //////////////////////////////////////////////////////////////////////////////// |
1509 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1513 // internal::NativeWidgetPrivate, NativeWidget implementation: |
1510 | 1514 |
1511 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1515 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
1512 return this; | 1516 return this; |
1513 } | 1517 } |
1514 | 1518 |
1515 } // namespace internal | 1519 } // namespace internal |
1516 } // namespace views | 1520 } // namespace views |
OLD | NEW |