| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // Class WebTextInputImpl provides implementation of WebTextInput which is | 5 // Class WebTextInputImpl provides implementation of WebTextInput which is |
| 6 // used by TextInputController in test_shell. It only facilitates layout tests | 6 // used by TextInputController in test_shell. It only facilitates layout tests |
| 7 // and should not be used by renderers. | 7 // and should not be used by renderers. |
| 8 | 8 |
| 9 #ifndef WEBKIT_GLUE_WEBTEXTINPUT_IMPL_H__ | 9 #ifndef WEBKIT_GLUE_WEBTEXTINPUT_IMPL_H__ |
| 10 #define WEBKIT_GLUE_WEBTEXTINPUT_IMPL_H__ | 10 #define WEBKIT_GLUE_WEBTEXTINPUT_IMPL_H__ |
| 11 | 11 |
| 12 #include "webkit/glue/webtextinput.h" | 12 #include "webkit/glue/webtextinput.h" |
| 13 | 13 |
| 14 class WebFrameImpl; | 14 class WebFrameImpl; |
| 15 class WebCore::Editor; | |
| 16 | 15 |
| 17 class WebTextInputImpl : public WebTextInput { | 16 class WebTextInputImpl : public WebTextInput { |
| 18 public: | 17 public: |
| 19 WebTextInputImpl(WebFrameImpl* web_frame_impl); | 18 WebTextInputImpl(WebFrameImpl* web_frame_impl); |
| 20 virtual ~WebTextInputImpl(); | 19 virtual ~WebTextInputImpl(); |
| 21 | 20 |
| 22 // WebTextInput methods | 21 // WebTextInput methods |
| 23 virtual void InsertText(const std::string& text); | 22 virtual void InsertText(const std::string& text); |
| 24 virtual void DoCommand(const std::string& command); | 23 virtual void DoCommand(const std::string& command); |
| 25 virtual void SetMarkedText(const std::string& text, | 24 virtual void SetMarkedText(const std::string& text, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 48 void DeleteToEndOfParagraph(); | 47 void DeleteToEndOfParagraph(); |
| 49 | 48 |
| 50 // Holding a non-owning pointer to the web frame we are associated with. | 49 // Holding a non-owning pointer to the web frame we are associated with. |
| 51 WebFrameImpl* web_frame_impl_; | 50 WebFrameImpl* web_frame_impl_; |
| 52 | 51 |
| 53 DISALLOW_EVIL_CONSTRUCTORS(WebTextInputImpl); | 52 DISALLOW_EVIL_CONSTRUCTORS(WebTextInputImpl); |
| 54 }; | 53 }; |
| 55 | 54 |
| 56 #endif // #ifndef WEBKIT_GLUE_WEBTEXTINPUT_IMPL_H__ | 55 #endif // #ifndef WEBKIT_GLUE_WEBTEXTINPUT_IMPL_H__ |
| 57 | 56 |
| OLD | NEW |