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

Unified Diff: chrome/test/base/interactive_test_utils_gtk.cc

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.h ('k') | chrome/test/base/interactive_test_utils_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/interactive_test_utils_gtk.cc
===================================================================
--- chrome/test/base/interactive_test_utils_gtk.cc (revision 192786)
+++ chrome/test/base/interactive_test_utils_gtk.cc (working copy)
@@ -82,4 +82,13 @@
base::Bind(&internal::ClickTask, button, state, task));
}
+gfx::Rect GetViewBounds(const Browser* browser, ViewID vid) {
+ BrowserWindow* browser_window = browser->window();
+ DCHECK(browser_window);
+ gfx::NativeWindow window = browser_window->GetNativeWindow();
+ DCHECK(window);
+ GtkWidget* view = ViewIDUtil::GetWidget(GTK_WIDGET(window), vid);
+ return ui::GetWidgetScreenBounds(view);
+}
+
} // namespace ui_test_utils
« no previous file with comments | « chrome/test/base/interactive_test_utils.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