OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 // TextInputController is bound to window.textInputController in Javascript | |
6 // when DRT is running. Layout tests use it to exercise various corners of | |
7 // text input. | |
8 | |
9 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEXTINPUTCONTROLLER_H_ | |
10 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEXTINPUTCONTROLLER_H_ | |
11 | |
12 #include "content/shell/renderer/test_runner/CppBoundClass.h" | |
13 | |
14 namespace blink { | |
15 class WebView; | |
16 } | |
17 | |
18 namespace WebTestRunner { | |
19 | |
20 class TextInputController : public CppBoundClass { | |
21 public: | |
22 TextInputController(); | |
23 | |
24 void setWebView(blink::WebView* webView) { m_webView = webView; } | |
25 | |
26 void insertText(const CppArgumentList&, CppVariant*); | |
27 void doCommand(const CppArgumentList&, CppVariant*); | |
28 void setMarkedText(const CppArgumentList&, CppVariant*); | |
29 void unmarkText(const CppArgumentList&, CppVariant*); | |
30 void hasMarkedText(const CppArgumentList&, CppVariant*); | |
31 void markedRange(const CppArgumentList&, CppVariant*); | |
32 void selectedRange(const CppArgumentList&, CppVariant*); | |
33 void firstRectForCharacterRange(const CppArgumentList&, CppVariant*); | |
34 void setComposition(const CppArgumentList&, CppVariant*); | |
35 | |
36 private: | |
37 blink::WebView* m_webView; | |
38 }; | |
39 | |
40 } | |
41 | |
42 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEXTINPUTCONTROLLER_H_ | |
OLD | NEW |