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

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

Issue 2497033002: Break apart WebGestureEvent from WebInputEvent. (Closed)
Patch Set: Rebase 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
« no previous file with comments | « components/test_runner/test_plugin.cc ('k') | content/browser/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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/web/WebCompositionUnderline.h" 15 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
15 #include "third_party/WebKit/public/web/WebFrameWidget.h" 16 #include "third_party/WebKit/public/web/WebFrameWidget.h"
16 #include "third_party/WebKit/public/web/WebInputEvent.h"
17 #include "third_party/WebKit/public/web/WebInputMethodController.h" 17 #include "third_party/WebKit/public/web/WebInputMethodController.h"
18 #include "third_party/WebKit/public/web/WebKit.h" 18 #include "third_party/WebKit/public/web/WebKit.h"
19 #include "third_party/WebKit/public/web/WebLocalFrame.h" 19 #include "third_party/WebKit/public/web/WebLocalFrame.h"
20 #include "third_party/WebKit/public/web/WebRange.h" 20 #include "third_party/WebKit/public/web/WebRange.h"
21 #include "third_party/WebKit/public/web/WebView.h" 21 #include "third_party/WebKit/public/web/WebView.h"
22 #include "third_party/skia/include/core/SkColor.h" 22 #include "third_party/skia/include/core/SkColor.h"
23 #include "v8/include/v8.h" 23 #include "v8/include/v8.h"
24 24
25 namespace test_runner { 25 namespace test_runner {
26 26
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 blink::WebInputMethodController* TextInputController::inputMethodController() { 319 blink::WebInputMethodController* TextInputController::inputMethodController() {
320 blink::WebLocalFrame* mainFrame = view()->mainFrame()->toWebLocalFrame(); 320 blink::WebLocalFrame* mainFrame = view()->mainFrame()->toWebLocalFrame();
321 if (!mainFrame) { 321 if (!mainFrame) {
322 CHECK(false) << "WebView does not have a local main frame and" 322 CHECK(false) << "WebView does not have a local main frame and"
323 " cannot handle input method controller tasks."; 323 " cannot handle input method controller tasks.";
324 } 324 }
325 return mainFrame->frameWidget()->getActiveWebInputMethodController(); 325 return mainFrame->frameWidget()->getActiveWebInputMethodController();
326 } 326 }
327 327
328 } // namespace test_runner 328 } // namespace test_runner
OLDNEW
« no previous file with comments | « components/test_runner/test_plugin.cc ('k') | content/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698