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

Unified Diff: components/test_runner/web_test_runner.h

Issue 1886013002: Track focused view in TestRunner instead of in BlinkTestRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « components/test_runner/test_runner.cc ('k') | components/test_runner/web_view_test_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_test_runner.h
diff --git a/components/test_runner/web_test_runner.h b/components/test_runner/web_test_runner.h
index 28baf6280dfbeb85296450cb560e54336c39d2d2..41b54dfaece263b337b2552bc2dd0425e96b04a3 100644
--- a/components/test_runner/web_test_runner.h
+++ b/components/test_runner/web_test_runner.h
@@ -79,6 +79,10 @@ class WebTestRunner {
// method covers blink::WebCredentialManagerClient and
// blink::WebSpellCheckClient.
virtual void InitializeWebViewWithMocks(blink::WebView* web_view) = 0;
+
+ // Sets focus on the given view. Internally tracks currently focused view,
+ // to aid in defocusing previously focused views at the right time.
+ virtual void SetFocus(blink::WebView* web_view, bool focus) = 0;
};
} // namespace test_runner
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | components/test_runner/web_view_test_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698