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

Unified Diff: chrome/test/base/interactive_test_utils_mac.mm

Issue 13084017: Fix OmniboxViewTest.SelectAllOnClick (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 6 Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/interactive_test_utils_gtk.cc ('k') | chrome/test/base/interactive_test_utils_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/interactive_test_utils_mac.mm
===================================================================
--- chrome/test/base/interactive_test_utils_mac.mm (revision 192786)
+++ chrome/test/base/interactive_test_utils_mac.mm (working copy)
@@ -90,4 +90,13 @@
base::Bind(&internal::ClickTask, button, state, task));
}
+gfx::Rect GetViewBounds(const Browser* browser, ViewID vid) {
+ NSWindow* window = browser->window()->GetNativeWindow();
+ DCHECK(window);
+ NSView* view = view_id_util::GetView(window, vid);
+ DCHECK(view);
+ return gfx::Rect(NSRectToCGRect(
+ [view convertRect:[view bounds] toView:nil]));
+}
+
} // namespace ui_test_utils
« no previous file with comments | « chrome/test/base/interactive_test_utils_gtk.cc ('k') | chrome/test/base/interactive_test_utils_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698