| Index: content/shell/renderer/test_runner/TextInputController.h
|
| diff --git a/content/shell/renderer/test_runner/TextInputController.h b/content/shell/renderer/test_runner/TextInputController.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..eabea24102db4cae57b662cf05b2c041af6ff044
|
| --- /dev/null
|
| +++ b/content/shell/renderer/test_runner/TextInputController.h
|
| @@ -0,0 +1,42 @@
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// TextInputController is bound to window.textInputController in Javascript
|
| +// when DRT is running. Layout tests use it to exercise various corners of
|
| +// text input.
|
| +
|
| +#ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEXTINPUTCONTROLLER_H_
|
| +#define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEXTINPUTCONTROLLER_H_
|
| +
|
| +#include "content/shell/renderer/test_runner/CppBoundClass.h"
|
| +
|
| +namespace blink {
|
| +class WebView;
|
| +}
|
| +
|
| +namespace WebTestRunner {
|
| +
|
| +class TextInputController : public CppBoundClass {
|
| +public:
|
| + TextInputController();
|
| +
|
| + void setWebView(blink::WebView* webView) { m_webView = webView; }
|
| +
|
| + void insertText(const CppArgumentList&, CppVariant*);
|
| + void doCommand(const CppArgumentList&, CppVariant*);
|
| + void setMarkedText(const CppArgumentList&, CppVariant*);
|
| + void unmarkText(const CppArgumentList&, CppVariant*);
|
| + void hasMarkedText(const CppArgumentList&, CppVariant*);
|
| + void markedRange(const CppArgumentList&, CppVariant*);
|
| + void selectedRange(const CppArgumentList&, CppVariant*);
|
| + void firstRectForCharacterRange(const CppArgumentList&, CppVariant*);
|
| + void setComposition(const CppArgumentList&, CppVariant*);
|
| +
|
| +private:
|
| + blink::WebView* m_webView;
|
| +};
|
| +
|
| +}
|
| +
|
| +#endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEXTINPUTCONTROLLER_H_
|
|
|