| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/ui_test_utils.h" | 5 #include "chrome/test/ui_test_utils.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 DCHECK(view); | 79 DCHECK(view); |
| 80 ui_controls::MoveMouseToCenterAndPress( | 80 ui_controls::MoveMouseToCenterAndPress( |
| 81 view, | 81 view, |
| 82 ui_controls::LEFT, | 82 ui_controls::LEFT, |
| 83 ui_controls::DOWN | ui_controls::UP, | 83 ui_controls::DOWN | ui_controls::UP, |
| 84 new MessageLoop::QuitTask()); | 84 new MessageLoop::QuitTask()); |
| 85 RunMessageLoop(); | 85 RunMessageLoop(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 void HideNativeWindow(gfx::NativeWindow window) { |
| 89 gtk_widget_hide(GTK_WIDGET(window)); |
| 90 } |
| 91 |
| 92 void ShowAndFocusNativeWindow(gfx::NativeWindow window) { |
| 93 gtk_window_present(GTK_WINDOW(window)); |
| 94 } |
| 95 |
| 88 } // namespace ui_test_utils | 96 } // namespace ui_test_utils |
| OLD | NEW |