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 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
959 | 959 |
960 gfx::Rect Widget::GetWorkAreaBoundsInScreen() const { | 960 gfx::Rect Widget::GetWorkAreaBoundsInScreen() const { |
961 return native_widget_->GetWorkAreaBoundsInScreen(); | 961 return native_widget_->GetWorkAreaBoundsInScreen(); |
962 } | 962 } |
963 | 963 |
964 void Widget::SynthesizeMouseMoveEvent() { | 964 void Widget::SynthesizeMouseMoveEvent() { |
965 last_mouse_event_was_move_ = false; | 965 last_mouse_event_was_move_ = false; |
966 ui::MouseEvent mouse_event(ui::ET_MOUSE_MOVED, | 966 ui::MouseEvent mouse_event(ui::ET_MOUSE_MOVED, |
967 last_mouse_event_position_, | 967 last_mouse_event_position_, |
968 last_mouse_event_position_, | 968 last_mouse_event_position_, |
969 ui::EF_IS_SYNTHESIZED); | 969 ui::EF_IS_SYNTHESIZED, 0); |
970 root_view_->OnMouseMoved(mouse_event); | 970 root_view_->OnMouseMoved(mouse_event); |
971 } | 971 } |
972 | 972 |
973 void Widget::OnRootViewLayout() { | 973 void Widget::OnRootViewLayout() { |
974 native_widget_->OnRootViewLayout(); | 974 native_widget_->OnRootViewLayout(); |
975 } | 975 } |
976 | 976 |
977 void Widget::OnOwnerClosing() { | 977 void Widget::OnOwnerClosing() { |
978 } | 978 } |
979 | 979 |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1430 | 1430 |
1431 //////////////////////////////////////////////////////////////////////////////// | 1431 //////////////////////////////////////////////////////////////////////////////// |
1432 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1432 // internal::NativeWidgetPrivate, NativeWidget implementation: |
1433 | 1433 |
1434 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1434 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
1435 return this; | 1435 return this; |
1436 } | 1436 } |
1437 | 1437 |
1438 } // namespace internal | 1438 } // namespace internal |
1439 } // namespace views | 1439 } // namespace views |
OLD | NEW |