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

Side by Side Diff: components/test_runner/web_test_proxy.h

Issue 2157113002: Move didFocus from WebWidgetClient to WebViewClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/test_runner/web_view_test_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_PROXY_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 bool requestPointerLock() override { 177 bool requestPointerLock() override {
178 return widget_test_client()->requestPointerLock(); 178 return widget_test_client()->requestPointerLock();
179 } 179 }
180 void requestPointerUnlock() override { 180 void requestPointerUnlock() override {
181 widget_test_client()->requestPointerUnlock(); 181 widget_test_client()->requestPointerUnlock();
182 } 182 }
183 bool isPointerLocked() override { 183 bool isPointerLocked() override {
184 return widget_test_client()->isPointerLocked(); 184 return widget_test_client()->isPointerLocked();
185 } 185 }
186 void didFocus() override { 186 void didFocus() override {
187 widget_test_client()->didFocus(); 187 view_test_client()->didFocus();
188 Base::didFocus(); 188 Base::didFocus();
189 } 189 }
190 void setToolTipText(const blink::WebString& text, 190 void setToolTipText(const blink::WebString& text,
191 blink::WebTextDirection hint) override { 191 blink::WebTextDirection hint) override {
192 widget_test_client()->setToolTipText(text, hint); 192 widget_test_client()->setToolTipText(text, hint);
193 Base::setToolTipText(text, hint); 193 Base::setToolTipText(text, hint);
194 } 194 }
195 void resetInputMethod() override { widget_test_client()->resetInputMethod(); } 195 void resetInputMethod() override { widget_test_client()->resetInputMethod(); }
196 196
197 // WebViewClient implementation. 197 // WebViewClient implementation.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 private: 247 private:
248 virtual ~WebTestProxy() {} 248 virtual ~WebTestProxy() {}
249 249
250 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); 250 DISALLOW_COPY_AND_ASSIGN(WebTestProxy);
251 }; 251 };
252 252
253 } // namespace test_runner 253 } // namespace test_runner
254 254
255 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ 255 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | components/test_runner/web_view_test_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698