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 "chrome/test/base/ui_test_utils.h" | 5 #include "chrome/test/base/ui_test_utils.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 int state, | 76 int state, |
77 const base::Closure& task) { | 77 const base::Closure& task) { |
78 gfx::Rect bounds = ui::GetWidgetScreenBounds(widget); | 78 gfx::Rect bounds = ui::GetWidgetScreenBounds(widget); |
79 ui_controls::SendMouseMoveNotifyWhenDone( | 79 ui_controls::SendMouseMoveNotifyWhenDone( |
80 bounds.x() + bounds.width() / 2, | 80 bounds.x() + bounds.width() / 2, |
81 bounds.y() + bounds.height() / 2, | 81 bounds.y() + bounds.height() / 2, |
82 base::Bind(&internal::ClickTask, button, state, task)); | 82 base::Bind(&internal::ClickTask, button, state, task)); |
83 } | 83 } |
84 | 84 |
85 } // namespace ui_test_utils | 85 } // namespace ui_test_utils |
OLD | NEW |