| 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 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 | 976 |
| 977 // Convert: screen coordinate -> widget coordinate. | 977 // Convert: screen coordinate -> widget coordinate. |
| 978 View::ConvertPointFromScreen(root_view_.get(), &mouse_location); | 978 View::ConvertPointFromScreen(root_view_.get(), &mouse_location); |
| 979 last_mouse_event_was_move_ = false; | 979 last_mouse_event_was_move_ = false; |
| 980 ui::MouseEvent mouse_event(ui::ET_MOUSE_MOVED, mouse_location, | 980 ui::MouseEvent mouse_event(ui::ET_MOUSE_MOVED, mouse_location, |
| 981 mouse_location, ui::EventTimeForNow(), | 981 mouse_location, ui::EventTimeForNow(), |
| 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() { | |
| 987 native_widget_->OnRootViewLayout(); | |
| 988 } | |
| 989 | |
| 990 bool Widget::IsTranslucentWindowOpacitySupported() const { | 986 bool Widget::IsTranslucentWindowOpacitySupported() const { |
| 991 return native_widget_->IsTranslucentWindowOpacitySupported(); | 987 return native_widget_->IsTranslucentWindowOpacitySupported(); |
| 992 } | 988 } |
| 993 | 989 |
| 994 void Widget::OnSizeConstraintsChanged() { | 990 void Widget::OnSizeConstraintsChanged() { |
| 995 native_widget_->OnSizeConstraintsChanged(); | 991 native_widget_->OnSizeConstraintsChanged(); |
| 996 non_client_view_->SizeConstraintsChanged(); | 992 non_client_view_->SizeConstraintsChanged(); |
| 997 } | 993 } |
| 998 | 994 |
| 999 void Widget::OnOwnerClosing() {} | 995 void Widget::OnOwnerClosing() {} |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1497 | 1493 |
| 1498 //////////////////////////////////////////////////////////////////////////////// | 1494 //////////////////////////////////////////////////////////////////////////////// |
| 1499 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1495 // internal::NativeWidgetPrivate, NativeWidget implementation: |
| 1500 | 1496 |
| 1501 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1497 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
| 1502 return this; | 1498 return this; |
| 1503 } | 1499 } |
| 1504 | 1500 |
| 1505 } // namespace internal | 1501 } // namespace internal |
| 1506 } // namespace views | 1502 } // namespace views |
| OLD | NEW |