| 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 "components/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 "components/test_runner/web_test_delegate.h" |
| 9 #include "components/test_runner/web_view_test_proxy.h" | 9 #include "components/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/WebInputEvent.h" | 14 #include "third_party/WebKit/public/platform/WebInputEvent.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/web/WebCompositionUnderline.h" | 17 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
| 17 #include "third_party/WebKit/public/web/WebFrameWidget.h" | 18 #include "third_party/WebKit/public/web/WebFrameWidget.h" |
| 18 #include "third_party/WebKit/public/web/WebInputMethodController.h" | 19 #include "third_party/WebKit/public/web/WebInputMethodController.h" |
| 19 #include "third_party/WebKit/public/web/WebKit.h" | 20 #include "third_party/WebKit/public/web/WebKit.h" |
| 20 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 21 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 21 #include "third_party/WebKit/public/web/WebRange.h" | 22 #include "third_party/WebKit/public/web/WebRange.h" |
| 22 #include "third_party/WebKit/public/web/WebView.h" | 23 #include "third_party/WebKit/public/web/WebView.h" |
| 23 #include "third_party/skia/include/core/SkColor.h" | 24 #include "third_party/skia/include/core/SkColor.h" |
| 24 #include "ui/events/base_event_utils.h" | 25 #include "ui/events/base_event_utils.h" |
| 25 #include "v8/include/v8.h" | 26 #include "v8/include/v8.h" |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 335 |
| 335 blink::WebLocalFrame* mainFrame = view()->mainFrame()->toWebLocalFrame(); | 336 blink::WebLocalFrame* mainFrame = view()->mainFrame()->toWebLocalFrame(); |
| 336 if (!mainFrame) { | 337 if (!mainFrame) { |
| 337 CHECK(false) << "WebView does not have a local main frame and" | 338 CHECK(false) << "WebView does not have a local main frame and" |
| 338 " cannot handle input method controller tasks."; | 339 " cannot handle input method controller tasks."; |
| 339 } | 340 } |
| 340 return mainFrame->frameWidget()->getActiveWebInputMethodController(); | 341 return mainFrame->frameWidget()->getActiveWebInputMethodController(); |
| 341 } | 342 } |
| 342 | 343 |
| 343 } // namespace test_runner | 344 } // namespace test_runner |
| OLD | NEW |