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/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 const TooltipManager* Widget::GetTooltipManager() const { | 982 const TooltipManager* Widget::GetTooltipManager() const { |
983 return native_widget_->GetTooltipManager(); | 983 return native_widget_->GetTooltipManager(); |
984 } | 984 } |
985 | 985 |
986 gfx::Rect Widget::GetWorkAreaBoundsInScreen() const { | 986 gfx::Rect Widget::GetWorkAreaBoundsInScreen() const { |
987 return native_widget_->GetWorkAreaBoundsInScreen(); | 987 return native_widget_->GetWorkAreaBoundsInScreen(); |
988 } | 988 } |
989 | 989 |
990 void Widget::SynthesizeMouseMoveEvent() { | 990 void Widget::SynthesizeMouseMoveEvent() { |
991 last_mouse_event_was_move_ = false; | 991 last_mouse_event_was_move_ = false; |
992 ui::MouseEvent mouse_event(ui::ET_MOUSE_MOVED, last_mouse_event_position_, | 992 ui::MouseEvent mouse_event( |
993 last_mouse_event_position_, ui::EventTimeForNow(), | 993 ui::ET_MOUSE_MOVED, last_mouse_event_position_, |
994 ui::EF_IS_SYNTHESIZED, 0); | 994 last_mouse_event_position_, ui::EventTimeForNow(), ui::EF_IS_SYNTHESIZED, |
| 995 0, ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE)); |
995 root_view_->OnMouseMoved(mouse_event); | 996 root_view_->OnMouseMoved(mouse_event); |
996 } | 997 } |
997 | 998 |
998 void Widget::OnRootViewLayout() { | 999 void Widget::OnRootViewLayout() { |
999 native_widget_->OnRootViewLayout(); | 1000 native_widget_->OnRootViewLayout(); |
1000 } | 1001 } |
1001 | 1002 |
1002 bool Widget::IsTranslucentWindowOpacitySupported() const { | 1003 bool Widget::IsTranslucentWindowOpacitySupported() const { |
1003 return native_widget_->IsTranslucentWindowOpacitySupported(); | 1004 return native_widget_->IsTranslucentWindowOpacitySupported(); |
1004 } | 1005 } |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1483 | 1484 |
1484 //////////////////////////////////////////////////////////////////////////////// | 1485 //////////////////////////////////////////////////////////////////////////////// |
1485 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1486 // internal::NativeWidgetPrivate, NativeWidget implementation: |
1486 | 1487 |
1487 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1488 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
1488 return this; | 1489 return this; |
1489 } | 1490 } |
1490 | 1491 |
1491 } // namespace internal | 1492 } // namespace internal |
1492 } // namespace views | 1493 } // namespace views |
OLD | NEW |