summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/chromium/src/EditorClientImpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/chromium/src/EditorClientImpl.h')
-rw-r--r--Source/WebKit/chromium/src/EditorClientImpl.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/WebKit/chromium/src/EditorClientImpl.h b/Source/WebKit/chromium/src/EditorClientImpl.h
index 8c40f3c..b81fb56 100644
--- a/Source/WebKit/chromium/src/EditorClientImpl.h
+++ b/Source/WebKit/chromium/src/EditorClientImpl.h
@@ -32,6 +32,7 @@
#define EditorClientImpl_h
#include "EditorClient.h"
+#include "TextCheckerClient.h"
#include "Timer.h"
#include <wtf/Deque.h>
@@ -43,7 +44,7 @@ class SpellChecker;
namespace WebKit {
class WebViewImpl;
-class EditorClientImpl : public WebCore::EditorClient {
+class EditorClientImpl : public WebCore::EditorClient, public WebCore::TextCheckerClient {
public:
EditorClientImpl(WebViewImpl* webView);
@@ -58,7 +59,6 @@ public:
virtual bool isGrammarCheckingEnabled();
virtual void toggleGrammarChecking();
virtual int spellCheckerDocumentTag();
- virtual bool isEditable();
virtual bool shouldBeginEditing(WebCore::Range*);
virtual bool shouldEndEditing(WebCore::Range*);
virtual bool shouldInsertNode(WebCore::Node*, WebCore::Range*, WebCore::EditorInsertAction);
@@ -79,6 +79,8 @@ public:
virtual void registerCommandForUndo(PassRefPtr<WebCore::EditCommand>);
virtual void registerCommandForRedo(PassRefPtr<WebCore::EditCommand>);
virtual void clearUndoRedoOperations();
+ virtual bool canCopyCut(bool defaultValue) const;
+ virtual bool canPaste(bool defaultValue) const;
virtual bool canUndo() const;
virtual bool canRedo() const;
virtual void undo();
@@ -114,6 +116,8 @@ public:
virtual void setInputMethodState(bool enabled);
virtual void requestCheckingOfString(WebCore::SpellChecker*, int, const WTF::String&);
+ virtual WebCore::TextCheckerClient* textChecker() { return this; }
+
// Shows the form autofill popup for |node| if it is an HTMLInputElement and
// it is empty. This is called when you press the up or down arrow in a
// text-field or when clicking an already focused text-field.