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

Side by Side Diff: components/test_runner/renderer/text_input_controller.cc

Issue 1167703002: Move test runner to a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
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 #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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698