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 "components/test_runner/text_input_controller.h" | 5 #include "content/shell/test_runner/text_input_controller.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "components/test_runner/web_test_delegate.h" | 8 #include "content/shell/test_runner/web_test_delegate.h" |
9 #include "components/test_runner/web_view_test_proxy.h" | 9 #include "content/shell/test_runner/web_view_test_proxy.h" |
10 #include "gin/arguments.h" | 10 #include "gin/arguments.h" |
11 #include "gin/handle.h" | 11 #include "gin/handle.h" |
12 #include "gin/object_template_builder.h" | 12 #include "gin/object_template_builder.h" |
13 #include "gin/wrappable.h" | 13 #include "gin/wrappable.h" |
14 #include "third_party/WebKit/public/platform/WebCoalescedInputEvent.h" | 14 #include "third_party/WebKit/public/platform/WebCoalescedInputEvent.h" |
15 #include "third_party/WebKit/public/platform/WebInputEventResult.h" | 15 #include "third_party/WebKit/public/platform/WebInputEventResult.h" |
16 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h" | 16 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h" |
17 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 17 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
18 #include "third_party/WebKit/public/web/WebFrameWidget.h" | 18 #include "third_party/WebKit/public/web/WebFrameWidget.h" |
19 #include "third_party/WebKit/public/web/WebInputMethodController.h" | 19 #include "third_party/WebKit/public/web/WebInputMethodController.h" |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 337 |
338 blink::WebLocalFrame* mainFrame = view()->mainFrame()->toWebLocalFrame(); | 338 blink::WebLocalFrame* mainFrame = view()->mainFrame()->toWebLocalFrame(); |
339 if (!mainFrame) { | 339 if (!mainFrame) { |
340 CHECK(false) << "WebView does not have a local main frame and" | 340 CHECK(false) << "WebView does not have a local main frame and" |
341 " cannot handle input method controller tasks."; | 341 " cannot handle input method controller tasks."; |
342 } | 342 } |
343 return mainFrame->frameWidget()->getActiveWebInputMethodController(); | 343 return mainFrame->frameWidget()->getActiveWebInputMethodController(); |
344 } | 344 } |
345 | 345 |
346 } // namespace test_runner | 346 } // namespace test_runner |
OLD | NEW |