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

Side by Side Diff: chrome/test/base/interactive_test_utils_views.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 "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/views/frame/browser_view.h" 10 #include "chrome/browser/ui/views/frame/browser_view.h"
11 #include "ui/base/test/ui_controls.h" 11 #include "ui/base/test/ui_controls.h"
12 #include "ui/views/focus/focus_manager.h" 12 #include "ui/views/focus/focus_manager.h"
13 13
14 namespace ui_test_utils { 14 namespace ui_test_utils {
15 15
16 bool IsViewFocused(const Browser* browser, ViewID vid) { 16 bool IsViewFocused(const Browser* browser, ViewID vid) {
17 BrowserWindow* browser_window = browser->window(); 17 BrowserWindow* browser_window = browser->window();
18 DCHECK(browser_window); 18 DCHECK(browser_window);
(...skipping 27 matching lines...) Expand all
46 DCHECK(view->GetWidget()); 46 DCHECK(view->GetWidget());
47 gfx::Point view_center(view->width() / 2, view->height() / 2); 47 gfx::Point view_center(view->width() / 2, view->height() / 2);
48 views::View::ConvertPointToScreen(view, &view_center); 48 views::View::ConvertPointToScreen(view, &view_center);
49 ui_controls::SendMouseMoveNotifyWhenDone( 49 ui_controls::SendMouseMoveNotifyWhenDone(
50 view_center.x(), 50 view_center.x(),
51 view_center.y(), 51 view_center.y(),
52 base::Bind(&internal::ClickTask, button, state, closure)); 52 base::Bind(&internal::ClickTask, button, state, closure));
53 } 53 }
54 54
55 } // namespace ui_test_utils 55 } // namespace ui_test_utils
OLDNEW
« no previous file with comments | « chrome/test/base/interactive_test_utils_mac.mm ('k') | chrome/test/base/test_tab_strip_model_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698