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 #include "content/shell/renderer/test_runner/text_input_controller.h" | 5 #include "components/test_runner/renderer/text_input_controller.h" |
6 | 6 |
7 #include "gin/arguments.h" | 7 #include "gin/arguments.h" |
8 #include "gin/handle.h" | 8 #include "gin/handle.h" |
9 #include "gin/object_template_builder.h" | 9 #include "gin/object_template_builder.h" |
10 #include "gin/wrappable.h" | 10 #include "gin/wrappable.h" |
11 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 11 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
12 #include "third_party/WebKit/public/web/WebFrame.h" | 12 #include "third_party/WebKit/public/web/WebFrame.h" |
13 #include "third_party/WebKit/public/web/WebInputEvent.h" | 13 #include "third_party/WebKit/public/web/WebInputEvent.h" |
14 #include "third_party/WebKit/public/web/WebKit.h" | 14 #include "third_party/WebKit/public/web/WebKit.h" |
15 #include "third_party/WebKit/public/web/WebRange.h" | 15 #include "third_party/WebKit/public/web/WebRange.h" |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 key_down.windowsKeyCode = 0xE5; // VKEY_PROCESSKEY | 255 key_down.windowsKeyCode = 0xE5; // VKEY_PROCESSKEY |
256 key_down.setKeyIdentifierFromWindowsKeyCode(); | 256 key_down.setKeyIdentifierFromWindowsKeyCode(); |
257 view_->handleInputEvent(key_down); | 257 view_->handleInputEvent(key_down); |
258 | 258 |
259 blink::WebVector<blink::WebCompositionUnderline> underlines; | 259 blink::WebVector<blink::WebCompositionUnderline> underlines; |
260 blink::WebString web_text(blink::WebString::fromUTF8(text)); | 260 blink::WebString web_text(blink::WebString::fromUTF8(text)); |
261 view_->setComposition(web_text, underlines, 0, web_text.length()); | 261 view_->setComposition(web_text, underlines, 0, web_text.length()); |
262 } | 262 } |
263 | 263 |
264 } // namespace content | 264 } // namespace content |
OLD | NEW |