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/aura/root_window.h" | 5 #include "ui/aura/root_window.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 MessageLoop::current()->PostTask( | 755 MessageLoop::current()->PostTask( |
756 FROM_HERE, | 756 FROM_HERE, |
757 base::Bind(&RootWindow::SynthesizeMouseMoveEvent, | 757 base::Bind(&RootWindow::SynthesizeMouseMoveEvent, |
758 event_factory_.GetWeakPtr())); | 758 event_factory_.GetWeakPtr())); |
759 } | 759 } |
760 | 760 |
761 void RootWindow::SynthesizeMouseMoveEvent() { | 761 void RootWindow::SynthesizeMouseMoveEvent() { |
762 if (!synthesize_mouse_move_) | 762 if (!synthesize_mouse_move_) |
763 return; | 763 return; |
764 synthesize_mouse_move_ = false; | 764 synthesize_mouse_move_ = false; |
| 765 #if !defined(OS_WIN) |
| 766 // Temporarily disabled for windows. See crbug.com/112222. |
765 gfx::Point orig_mouse_location = last_mouse_location_; | 767 gfx::Point orig_mouse_location = last_mouse_location_; |
766 layer()->transform().TransformPoint(orig_mouse_location); | 768 layer()->transform().TransformPoint(orig_mouse_location); |
767 | 769 |
768 // TODO(derat|oshima): Don't use mouse_button_flags_ as it's | 770 // TODO(derat|oshima): Don't use mouse_button_flags_ as it's |
769 // is currently broken. See/ crbug.com/107931. | 771 // is currently broken. See/ crbug.com/107931. |
770 MouseEvent event(ui::ET_MOUSE_MOVED, | 772 MouseEvent event(ui::ET_MOUSE_MOVED, |
771 orig_mouse_location, | 773 orig_mouse_location, |
772 orig_mouse_location, | 774 orig_mouse_location, |
773 0); | 775 0); |
774 //DispatchMouseEvent(&event); | 776 DispatchMouseEvent(&event); |
| 777 #endif |
775 } | 778 } |
776 | 779 |
777 } // namespace aura | 780 } // namespace aura |
OLD | NEW |