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

Unified Diff: third_party/WebKit/Source/core/page/EditorClient.h

Issue 2870773003: Move EditorClientImpl.cpp out of web/ to core/page/EditorClient.cpp (Closed)
Patch Set: Created 3 years, 7 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
Index: third_party/WebKit/Source/core/page/EditorClient.h
diff --git a/third_party/WebKit/Source/core/page/EditorClient.h b/third_party/WebKit/Source/core/page/EditorClient.h
index 1634f879d4960f6e3b73b94c5128bb0a7b4b71f3..0956c9ec5bc400519ff17e5800acf5bc03a50ead 100644
--- a/third_party/WebKit/Source/core/page/EditorClient.h
+++ b/third_party/WebKit/Source/core/page/EditorClient.h
@@ -27,24 +27,30 @@
#ifndef EditorClient_h
#define EditorClient_h
+#include "core/CoreExport.h"
#include "core/editing/SelectionType.h"
#include "platform/wtf/Forward.h"
namespace blink {
class LocalFrame;
+class WebViewBase;
-class EditorClient {
+class CORE_EXPORT EditorClient {
public:
- virtual ~EditorClient() {}
+ explicit EditorClient(WebViewBase*);
+ virtual ~EditorClient();
- virtual void RespondToChangedContents() = 0;
- virtual void RespondToChangedSelection(LocalFrame*, SelectionType) = 0;
+ virtual void RespondToChangedContents();
+ virtual void RespondToChangedSelection(LocalFrame*, SelectionType);
- virtual bool CanCopyCut(LocalFrame*, bool default_value) const = 0;
- virtual bool CanPaste(LocalFrame*, bool default_value) const = 0;
+ virtual bool CanCopyCut(LocalFrame*, bool default_value) const;
+ virtual bool CanPaste(LocalFrame*, bool default_value) const;
- virtual bool HandleKeyboardEvent(LocalFrame*) = 0;
+ virtual bool HandleKeyboardEvent(LocalFrame*);
+
+ private:
+ WebViewBase* web_view_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698