summaryrefslogtreecommitdiffstats
path: root/webkit/glue/editor_client_impl.h
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-20 02:04:41 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-20 02:04:41 +0000
commitddbf30172076500e7b5715201ad7f528f7b3a4d6 (patch)
treef0c468f70520cbda8ed6f73143a329bf944d68f7 /webkit/glue/editor_client_impl.h
parentac82401483eb837c35ea54402cf10ad2393817c4 (diff)
downloadchromium_src-ddbf30172076500e7b5715201ad7f528f7b3a4d6.zip
chromium_src-ddbf30172076500e7b5715201ad7f528f7b3a4d6.tar.gz
chromium_src-ddbf30172076500e7b5715201ad7f528f7b3a4d6.tar.bz2
Review URL: http://codereview.chromium.org/11306
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/editor_client_impl.h')
-rw-r--r--webkit/glue/editor_client_impl.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/webkit/glue/editor_client_impl.h b/webkit/glue/editor_client_impl.h
index 4d0f057..189a9af 100644
--- a/webkit/glue/editor_client_impl.h
+++ b/webkit/glue/editor_client_impl.h
@@ -6,7 +6,6 @@
#define WEBKIT_GLUE_EDITOR_CLIENT_IMPL_H__
#include "base/compiler_specific.h"
-#include "base/task.h"
#include "build/build_config.h"
@@ -18,7 +17,6 @@ MSVC_POP_WARNING();
namespace WebCore {
class Frame;
-class HTMLInputElement;
class Node;
class PlatformKeyboardEvent;
}
@@ -105,6 +103,9 @@ class EditorClientImpl : public WebCore::EditorClient {
virtual void setInputMethodState(bool enabled);
void SetUseEditorDelegate(bool value) { use_editor_delegate_ = value; }
+ // HACK for webkit bug #16976.
+ // TODO (timsteele): Clean this up once webkit bug 16976 is fixed.
+ void PreserveSelection();
// It would be better to add these methods to the objects they describe, but
// those are in WebCore and therefore inaccessible.
@@ -122,23 +123,21 @@ class EditorClientImpl : public WebCore::EditorClient {
void ModifySelection(WebCore::Frame* frame,
WebCore::KeyboardEvent* event);
- void DoAutofill(WebCore::HTMLInputElement* input_element, bool backspace);
-
protected:
WebViewImpl* web_view_;
bool use_editor_delegate_;
bool in_redo_;
+ // Should preserve the selection in next call to shouldChangeSelectedRange.
+ bool preserve_;
+
+ // Points to an HTMLInputElement that was just autocompleted (else NULL),
+ // for use by respondToChangedContents().
+ WebCore::Element* pending_inline_autocompleted_element_;
+
typedef std::deque<WTF::RefPtr<WebCore::EditCommand> > EditCommandStack;
EditCommandStack undo_stack_;
EditCommandStack redo_stack_;
-
- private:
- // Whether the last entered key was a backspace.
- bool backspace_pressed_;
-
- // The method factory used to post autofill related tasks.
- ScopedRunnableMethodFactory<EditorClientImpl> autofill_factory_;
};
#endif // WEBKIT_GLUE_EDITOR_CLIENT_IMPL_H__