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

Side by Side Diff: components/test_runner/web_widget_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_WIDGET_TEST_PROXY_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 widget_test_client()->requestPointerUnlock(); 115 widget_test_client()->requestPointerUnlock();
116 } 116 }
117 bool isPointerLocked() override { 117 bool isPointerLocked() override {
118 return widget_test_client()->isPointerLocked(); 118 return widget_test_client()->isPointerLocked();
119 } 119 }
120 void setToolTipText(const blink::WebString& text, 120 void setToolTipText(const blink::WebString& text,
121 blink::WebTextDirection hint) override { 121 blink::WebTextDirection hint) override {
122 Base::setToolTipText(text, hint); 122 Base::setToolTipText(text, hint);
123 widget_test_client()->setToolTipText(text, hint); 123 widget_test_client()->setToolTipText(text, hint);
124 } 124 }
125 void resetInputMethod() override { widget_test_client()->resetInputMethod(); }
126 void startDragging(blink::WebReferrerPolicy policy, 125 void startDragging(blink::WebReferrerPolicy policy,
127 const blink::WebDragData& data, 126 const blink::WebDragData& data,
128 blink::WebDragOperationsMask mask, 127 blink::WebDragOperationsMask mask,
129 const blink::WebImage& image, 128 const blink::WebImage& image,
130 const blink::WebPoint& point) override { 129 const blink::WebPoint& point) override {
131 widget_test_client()->startDragging(policy, data, mask, image, point); 130 widget_test_client()->startDragging(policy, data, mask, image, point);
132 // Don't forward this call to Base because we don't want to do a real 131 // Don't forward this call to Base because we don't want to do a real
133 // drag-and-drop. 132 // drag-and-drop.
134 } 133 }
135 134
136 private: 135 private:
137 virtual ~WebWidgetTestProxy() {} 136 virtual ~WebWidgetTestProxy() {}
138 137
139 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestProxy); 138 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestProxy);
140 }; 139 };
141 140
142 } // namespace test_runner 141 } // namespace test_runner
143 142
144 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_ 143 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_
OLDNEW
« no previous file with comments | « components/test_runner/web_widget_test_client.cc ('k') | content/public/test/layouttest_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698