diff options
Diffstat (limited to 'webkit/glue/webtextinput_impl.h')
-rw-r--r-- | webkit/glue/webtextinput_impl.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/webkit/glue/webtextinput_impl.h b/webkit/glue/webtextinput_impl.h deleted file mode 100644 index 8344f7e..0000000 --- a/webkit/glue/webtextinput_impl.h +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2009 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. -// -// Class WebTextInputImpl provides implementation of WebTextInput which is -// used by TextInputController in test_shell. It only facilitates layout tests -// and should not be used by renderers. - -#ifndef WEBKIT_GLUE_WEBTEXTINPUT_IMPL_H_ -#define WEBKIT_GLUE_WEBTEXTINPUT_IMPL_H_ - -#include "webkit/glue/webtextinput.h" - -class WebFrameImpl; - -class WebTextInputImpl : public WebTextInput { - public: - WebTextInputImpl(WebFrameImpl* web_frame_impl); - virtual ~WebTextInputImpl(); - - // WebTextInput methods - virtual void InsertText(const string16& text); - virtual void DoCommand(const string16& command); - virtual void SetMarkedText(const string16& text, - int32_t location, int32_t length); - virtual void UnMarkText(); - virtual bool HasMarkedText(); - virtual void MarkedRange(std::string* range_str); - virtual void SelectedRange(std::string* range_str); - virtual void ValidAttributesForMarkedText(std::string* attributes); - - // TODO(huanr): examine all layout tests involving TextInputController - // and implement these functions if necessary. - virtual void ConversationIdentifier(); - virtual void SubstringFromRange(int32_t location, int32_t length); - virtual void AttributedSubstringFromRange(int32_t location, - int32_t length); - virtual void FirstRectForCharacterRange(int32_t location, - int32_t length); - virtual void CharacterIndexForPoint(double x, double y); - virtual void MakeAttributedString(const std::string& str); - - private: - WebCore::Frame* GetFrame(); - WebCore::Editor* GetEditor(); - - void DeleteToEndOfParagraph(); - - // Holding a non-owning pointer to the web frame we are associated with. - WebFrameImpl* web_frame_impl_; - - DISALLOW_COPY_AND_ASSIGN(WebTextInputImpl); -}; - -#endif // #ifndef WEBKIT_GLUE_WEBTEXTINPUT_IMPL_H_ |