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

Side by Side Diff: chrome/test/base/interactive_test_utils_gtk.cc

Issue 19569006: Use a direct include of the message_loop header in chrome/test/, chrome/tools/, chrome/utility/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
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 "chrome/test/base/interactive_test_utils.h" 5 #include "chrome/test/base/interactive_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"
11 #include "base/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/browser_window.h" 13 #include "chrome/browser/ui/browser_window.h"
14 #include "chrome/browser/ui/gtk/view_id_util.h" 14 #include "chrome/browser/ui/gtk/view_id_util.h"
15 #include "ui/base/gtk/gtk_screen_util.h" 15 #include "ui/base/gtk/gtk_screen_util.h"
16 #include "ui/base/test/ui_controls.h" 16 #include "ui/base/test/ui_controls.h"
17 17
18 namespace ui_test_utils { 18 namespace ui_test_utils {
19 19
20 namespace { 20 namespace {
21 // Check if the focused widget for |root| is |target| or a child of |target|. 21 // Check if the focused widget for |root| is |target| or a child of |target|.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 int state, 75 int state,
76 const base::Closure& task) { 76 const base::Closure& task) {
77 gfx::Rect bounds = ui::GetWidgetScreenBounds(widget); 77 gfx::Rect bounds = ui::GetWidgetScreenBounds(widget);
78 ui_controls::SendMouseMoveNotifyWhenDone( 78 ui_controls::SendMouseMoveNotifyWhenDone(
79 bounds.x() + bounds.width() / 2, 79 bounds.x() + bounds.width() / 2,
80 bounds.y() + bounds.height() / 2, 80 bounds.y() + bounds.height() / 2,
81 base::Bind(&internal::ClickTask, button, state, task)); 81 base::Bind(&internal::ClickTask, button, state, task));
82 } 82 }
83 83
84 } // namespace ui_test_utils 84 } // namespace ui_test_utils
OLDNEW
« no previous file with comments | « chrome/test/base/browser_with_test_window_test.h ('k') | chrome/test/base/interactive_test_utils_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698