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

Side by Side Diff: content/shell/renderer/test_runner/TextInputController.h

Issue 110533009: Import TestRunner library into chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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 TextInputController_h
10 #define 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 // TextInputController_h
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/TestRunner.cpp ('k') | content/shell/renderer/test_runner/TextInputController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698