| 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 "build/build_config.h" |
| 7 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 8 #include "chrome/browser/ui/browser_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
| 9 | 10 |
| 10 namespace ui_test_utils { | 11 namespace ui_test_utils { |
| 11 | 12 |
| 12 namespace { | 13 namespace { |
| 13 | 14 |
| 14 bool GetNativeWindow(const Browser* browser, gfx::NativeWindow* native_window) { | 15 bool GetNativeWindow(const Browser* browser, gfx::NativeWindow* native_window) { |
| 15 BrowserWindow* window = browser->window(); | 16 BrowserWindow* window = browser->window(); |
| 16 if (!window) | 17 if (!window) |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 const base::Closure& followup) { | 118 const base::Closure& followup) { |
| 118 if (!followup.is_null()) | 119 if (!followup.is_null()) |
| 119 ui_controls::SendMouseEventsNotifyWhenDone(button, state, followup); | 120 ui_controls::SendMouseEventsNotifyWhenDone(button, state, followup); |
| 120 else | 121 else |
| 121 ui_controls::SendMouseEvents(button, state); | 122 ui_controls::SendMouseEvents(button, state); |
| 122 } | 123 } |
| 123 | 124 |
| 124 } // namespace internal | 125 } // namespace internal |
| 125 | 126 |
| 126 } // namespace ui_test_utils | 127 } // namespace ui_test_utils |
| OLD | NEW |