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

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

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Rebased Created 4 years, 1 month 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
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_VIEW_TEST_PROXY_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 void didFocus() override { 166 void didFocus() override {
167 view_test_client()->didFocus(); 167 view_test_client()->didFocus();
168 Base::didFocus(); 168 Base::didFocus();
169 } 169 }
170 void setToolTipText(const blink::WebString& text, 170 void setToolTipText(const blink::WebString& text,
171 blink::WebTextDirection hint) override { 171 blink::WebTextDirection hint) override {
172 widget_test_client()->setToolTipText(text, hint); 172 widget_test_client()->setToolTipText(text, hint);
173 Base::setToolTipText(text, hint); 173 Base::setToolTipText(text, hint);
174 } 174 }
175 void resetInputMethod() override { widget_test_client()->resetInputMethod(); }
176 175
177 // WebViewClient implementation. 176 // WebViewClient implementation.
178 void startDragging(blink::WebReferrerPolicy policy, 177 void startDragging(blink::WebReferrerPolicy policy,
179 const blink::WebDragData& data, 178 const blink::WebDragData& data,
180 blink::WebDragOperationsMask mask, 179 blink::WebDragOperationsMask mask,
181 const blink::WebImage& image, 180 const blink::WebImage& image,
182 const blink::WebPoint& point) override { 181 const blink::WebPoint& point) override {
183 widget_test_client()->startDragging(policy, data, mask, image, point); 182 widget_test_client()->startDragging(policy, data, mask, image, point);
184 // Don't forward this call to Base because we don't want to do a real 183 // Don't forward this call to Base because we don't want to do a real
185 // drag-and-drop. 184 // drag-and-drop.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 225
227 private: 226 private:
228 virtual ~WebViewTestProxy() {} 227 virtual ~WebViewTestProxy() {}
229 228
230 DISALLOW_COPY_AND_ASSIGN(WebViewTestProxy); 229 DISALLOW_COPY_AND_ASSIGN(WebViewTestProxy);
231 }; 230 };
232 231
233 } // namespace test_runner 232 } // namespace test_runner
234 233
235 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_ 234 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_
OLDNEW
« no previous file with comments | « components/test_runner/web_test_delegate.h ('k') | components/test_runner/web_widget_test_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698