OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_RUNNER_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_RUNNER_H_ |
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_RUNNER_H_ | 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_RUNNER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // Returns true if WebTestProxy::capturePixels should be invoked after | 72 // Returns true if WebTestProxy::capturePixels should be invoked after |
73 // capturing text results. | 73 // capturing text results. |
74 virtual bool ShouldGeneratePixelResults() = 0; | 74 virtual bool ShouldGeneratePixelResults() = 0; |
75 | 75 |
76 // Sets various interfaces consumed by WebView to implementations providing | 76 // Sets various interfaces consumed by WebView to implementations providing |
77 // test behavior. This method covers interfaces that are not exposed via | 77 // test behavior. This method covers interfaces that are not exposed via |
78 // WebViewClient (and are covered by WebViewTestClient) - for example this | 78 // WebViewClient (and are covered by WebViewTestClient) - for example this |
79 // method covers blink::WebCredentialManagerClient and | 79 // method covers blink::WebCredentialManagerClient and |
80 // blink::WebSpellCheckClient. | 80 // blink::WebSpellCheckClient. |
81 virtual void InitializeWebViewWithMocks(blink::WebView* web_view) = 0; | 81 virtual void InitializeWebViewWithMocks(blink::WebView* web_view) = 0; |
| 82 |
| 83 // Sets focus on the given view. Internally tracks currently focused view, |
| 84 // to aid in defocusing previously focused views at the right time. |
| 85 virtual void SetFocus(blink::WebView* web_view, bool focus) = 0; |
82 }; | 86 }; |
83 | 87 |
84 } // namespace test_runner | 88 } // namespace test_runner |
85 | 89 |
86 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_RUNNER_H_ | 90 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_RUNNER_H_ |
OLD | NEW |