| 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/interactive_test_utils.h" | 5 #include "chrome/test/base/interactive_test_utils.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 "build/build_config.h" |
| 9 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/views/frame/browser_view.h" | 11 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 11 #include "ui/base/test/ui_controls.h" | 12 #include "ui/base/test/ui_controls.h" |
| 12 #include "ui/compositor/layer.h" | 13 #include "ui/compositor/layer.h" |
| 13 #include "ui/compositor/layer_animator.h" | 14 #include "ui/compositor/layer_animator.h" |
| 14 #include "ui/views/focus/focus_manager.h" | 15 #include "ui/views/focus/focus_manager.h" |
| 15 | 16 |
| 16 namespace ui_test_utils { | 17 namespace ui_test_utils { |
| 17 | 18 |
| 18 // Until the whole browser UI is ported to tookit-views on Mac, these need to | 19 // Until the whole browser UI is ported to tookit-views on Mac, these need to |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 70 |
| 70 gfx::Point view_center(view->width() / 2, view->height() / 2); | 71 gfx::Point view_center(view->width() / 2, view->height() / 2); |
| 71 views::View::ConvertPointToScreen(view, &view_center); | 72 views::View::ConvertPointToScreen(view, &view_center); |
| 72 ui_controls::SendMouseMoveNotifyWhenDone( | 73 ui_controls::SendMouseMoveNotifyWhenDone( |
| 73 view_center.x(), | 74 view_center.x(), |
| 74 view_center.y(), | 75 view_center.y(), |
| 75 base::Bind(&internal::ClickTask, button, state, closure)); | 76 base::Bind(&internal::ClickTask, button, state, closure)); |
| 76 } | 77 } |
| 77 | 78 |
| 78 } // namespace ui_test_utils | 79 } // namespace ui_test_utils |
| OLD | NEW |