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

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

Issue 2353353005: Aura: Focus() in ShowAndFocusNativeWindowAura (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/interactive_test_utils_aura.cc
diff --git a/chrome/test/base/interactive_test_utils_aura.cc b/chrome/test/base/interactive_test_utils_aura.cc
index 258fdb9bef3d33d3cef01d3b2d49d90733a3a05c..e13fb39e48142bc87813a2e070471bd347119af0 100644
--- a/chrome/test/base/interactive_test_utils_aura.cc
+++ b/chrome/test/base/interactive_test_utils_aura.cc
@@ -26,7 +26,10 @@ void HideNativeWindowAura(gfx::NativeWindow window) {
bool ShowAndFocusNativeWindowAura(gfx::NativeWindow window) {
window->Show();
- return true;
+ if (!window->IsVisible())
+ return false;
sky 2016/09/23 16:27:56 is this branch actually getting hit? If so, where?
Tom (Use chromium acct) 2016/09/23 20:34:57 No
sky 2016/09/26 01:48:17 Then can it be removed?
Tom (Use chromium acct) 2016/09/26 19:15:41 Done.
+ window->Focus();
+ return window->HasFocus();
Tom (Use chromium acct) 2016/09/23 20:34:57 HasFocus() is returning false. This is because in
sky 2016/09/26 01:48:17 That is not necessarily problematic. What is the t
Tom (Use chromium acct) 2016/09/26 19:15:41 Lots of them. The example I was using to test was
}
} // namespace ui_test_utils
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698