| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // TextInputController is bound to window.textInputController in Javascript | 31 // TextInputController is bound to window.textInputController in Javascript |
| 32 // when DRT is running. Layout tests use it to exercise various corners of | 32 // when DRT is running. Layout tests use it to exercise various corners of |
| 33 // text input. | 33 // text input. |
| 34 | 34 |
| 35 #ifndef TextInputController_h | 35 #ifndef TextInputController_h |
| 36 #define TextInputController_h | 36 #define TextInputController_h |
| 37 | 37 |
| 38 #include "CppBoundClass.h" | 38 #include "CppBoundClass.h" |
| 39 | 39 |
| 40 namespace WebKit { | 40 namespace blink { |
| 41 class WebView; | 41 class WebView; |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace WebTestRunner { | 44 namespace WebTestRunner { |
| 45 | 45 |
| 46 class TextInputController : public CppBoundClass { | 46 class TextInputController : public CppBoundClass { |
| 47 public: | 47 public: |
| 48 TextInputController(); | 48 TextInputController(); |
| 49 | 49 |
| 50 void setWebView(WebKit::WebView* webView) { m_webView = webView; } | 50 void setWebView(blink::WebView* webView) { m_webView = webView; } |
| 51 | 51 |
| 52 void insertText(const CppArgumentList&, CppVariant*); | 52 void insertText(const CppArgumentList&, CppVariant*); |
| 53 void doCommand(const CppArgumentList&, CppVariant*); | 53 void doCommand(const CppArgumentList&, CppVariant*); |
| 54 void setMarkedText(const CppArgumentList&, CppVariant*); | 54 void setMarkedText(const CppArgumentList&, CppVariant*); |
| 55 void unmarkText(const CppArgumentList&, CppVariant*); | 55 void unmarkText(const CppArgumentList&, CppVariant*); |
| 56 void hasMarkedText(const CppArgumentList&, CppVariant*); | 56 void hasMarkedText(const CppArgumentList&, CppVariant*); |
| 57 void markedRange(const CppArgumentList&, CppVariant*); | 57 void markedRange(const CppArgumentList&, CppVariant*); |
| 58 void selectedRange(const CppArgumentList&, CppVariant*); | 58 void selectedRange(const CppArgumentList&, CppVariant*); |
| 59 void firstRectForCharacterRange(const CppArgumentList&, CppVariant*); | 59 void firstRectForCharacterRange(const CppArgumentList&, CppVariant*); |
| 60 void setComposition(const CppArgumentList&, CppVariant*); | 60 void setComposition(const CppArgumentList&, CppVariant*); |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 WebKit::WebView* m_webView; | 63 blink::WebView* m_webView; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } | 66 } |
| 67 | 67 |
| 68 #endif // TextInputController_h | 68 #endif // TextInputController_h |
| OLD | NEW |