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

Unified Diff: webkit/glue/webtextinput_impl.h

Issue 164225: Switch to WebFrame from the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webtextinput.h ('k') | webkit/glue/webtextinput_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webtextinput_impl.h
===================================================================
--- webkit/glue/webtextinput_impl.h (revision 22886)
+++ webkit/glue/webtextinput_impl.h (working copy)
@@ -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_
« no previous file with comments | « webkit/glue/webtextinput.h ('k') | webkit/glue/webtextinput_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698