Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: ui/aura/root_window.cc

Issue 9314021: Temporarily disable mouse move synthesis on win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-enable test Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698