| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 void RootWindow::SynthesizeMouseMoveEvent() { | 852 void RootWindow::SynthesizeMouseMoveEvent() { |
| 853 if (!synthesize_mouse_move_) | 853 if (!synthesize_mouse_move_) |
| 854 return; | 854 return; |
| 855 synthesize_mouse_move_ = false; | 855 synthesize_mouse_move_ = false; |
| 856 #if !defined(OS_WIN) | 856 #if !defined(OS_WIN) |
| 857 // Temporarily disabled for windows. See crbug.com/112222. | 857 // Temporarily disabled for windows. See crbug.com/112222. |
| 858 gfx::Point orig_mouse_location = last_mouse_location_; | 858 gfx::Point orig_mouse_location = last_mouse_location_; |
| 859 layer()->transform().TransformPoint(orig_mouse_location); | 859 layer()->transform().TransformPoint(orig_mouse_location); |
| 860 | 860 |
| 861 // TODO(derat|oshima): Don't use mouse_button_flags_ as it's | 861 // TODO(derat|oshima): Don't use mouse_button_flags_ as it's |
| 862 // is currently broken. See/ crbug.com/107931. | 862 // currently broken. See/ crbug.com/107931. |
| 863 MouseEvent event(ui::ET_MOUSE_MOVED, | 863 MouseEvent event(ui::ET_MOUSE_MOVED, |
| 864 orig_mouse_location, | 864 orig_mouse_location, |
| 865 orig_mouse_location, | 865 orig_mouse_location, |
| 866 ui::EF_IS_SYNTHESIZED); | 866 ui::EF_IS_SYNTHESIZED); |
| 867 DispatchMouseEvent(&event); | 867 DispatchMouseEvent(&event); |
| 868 #endif | 868 #endif |
| 869 } | 869 } |
| 870 | 870 |
| 871 } // namespace aura | 871 } // namespace aura |
| OLD | NEW |