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 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1261 if (root_view && root_view->OnMouseWheel( | 1261 if (root_view && root_view->OnMouseWheel( |
1262 static_cast<const ui::MouseWheelEvent&>(*event))) | 1262 static_cast<const ui::MouseWheelEvent&>(*event))) |
1263 event->SetHandled(); | 1263 event->SetHandled(); |
1264 return; | 1264 return; |
1265 | 1265 |
1266 default: | 1266 default: |
1267 return; | 1267 return; |
1268 } | 1268 } |
1269 } | 1269 } |
1270 | 1270 |
| 1271 void Widget::OnAccessibilityMouseEvent(ui::MouseEvent* event) { |
| 1272 View* root_view = GetRootView(); |
| 1273 if (root_view) |
| 1274 root_view->OnAccessibilityMouseEvent(event); |
| 1275 } |
| 1276 |
1271 void Widget::OnMouseCaptureLost() { | 1277 void Widget::OnMouseCaptureLost() { |
1272 if (ignore_capture_loss_) | 1278 if (ignore_capture_loss_) |
1273 return; | 1279 return; |
1274 | 1280 |
1275 View* root_view = GetRootView(); | 1281 View* root_view = GetRootView(); |
1276 if (root_view) | 1282 if (root_view) |
1277 root_view->OnMouseCaptureLost(); | 1283 root_view->OnMouseCaptureLost(); |
1278 is_mouse_button_pressed_ = false; | 1284 is_mouse_button_pressed_ = false; |
1279 } | 1285 } |
1280 | 1286 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1504 | 1510 |
1505 //////////////////////////////////////////////////////////////////////////////// | 1511 //////////////////////////////////////////////////////////////////////////////// |
1506 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1512 // internal::NativeWidgetPrivate, NativeWidget implementation: |
1507 | 1513 |
1508 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1514 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
1509 return this; | 1515 return this; |
1510 } | 1516 } |
1511 | 1517 |
1512 } // namespace internal | 1518 } // namespace internal |
1513 } // namespace views | 1519 } // namespace views |
OLD | NEW |