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

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

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Explicitly asking for TextInputState updates 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 125
127 private: 126 private:
128 virtual ~WebWidgetTestProxy() {} 127 virtual ~WebWidgetTestProxy() {}
129 128
130 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestProxy); 129 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestProxy);
131 }; 130 };
132 131
133 } // namespace test_runner 132 } // namespace test_runner
134 133
135 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_ 134 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698