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

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

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
« no previous file with comments | « third_party/WebKit/Source/core/page/EditorClient.h ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/page/EditorClient.cpp
diff --git a/third_party/WebKit/Source/web/EditorClientImpl.cpp b/third_party/WebKit/Source/core/page/EditorClient.cpp
similarity index 75%
rename from third_party/WebKit/Source/web/EditorClientImpl.cpp
rename to third_party/WebKit/Source/core/page/EditorClient.cpp
index 79ab7993dd676100d405f287ab384e25a0cac6e1..e16e0f9687a2aa3292e747453de580339f2d3c8d 100644
--- a/third_party/WebKit/Source/web/EditorClientImpl.cpp
+++ b/third_party/WebKit/Source/core/page/EditorClient.cpp
@@ -24,49 +24,49 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "web/EditorClientImpl.h"
+#include "core/page/EditorClient.h"
#include "core/editing/SelectionType.h"
#include "core/exported/WebViewBase.h"
#include "core/frame/ContentSettingsClient.h"
+#include "core/frame/WebLocalFrameBase.h"
#include "public/web/WebFrameClient.h"
#include "public/web/WebViewClient.h"
-#include "web/WebLocalFrameImpl.h"
namespace blink {
-EditorClientImpl::EditorClientImpl(WebViewBase* webview) : web_view_(webview) {}
+EditorClient::EditorClient(WebViewBase* webview) : web_view_(webview) {}
-EditorClientImpl::~EditorClientImpl() {}
+EditorClient::~EditorClient() {}
-void EditorClientImpl::RespondToChangedSelection(LocalFrame* frame,
- SelectionType selection_type) {
- WebLocalFrameImpl* web_frame = WebLocalFrameImpl::FromFrame(frame);
+void EditorClient::RespondToChangedSelection(LocalFrame* frame,
+ SelectionType selection_type) {
+ WebLocalFrameBase* web_frame = WebLocalFrameBase::FromFrame(frame);
if (web_frame->Client())
web_frame->Client()->DidChangeSelection(selection_type != kRangeSelection);
}
-void EditorClientImpl::RespondToChangedContents() {
+void EditorClient::RespondToChangedContents() {
if (web_view_->Client())
web_view_->Client()->DidChangeContents();
haraken 2017/05/08 23:51:38 Not directly related to this CL, it might be nicer
slangley 2017/05/09 00:23:17 Got it - I'll submit as is but keep this in mind.
}
-bool EditorClientImpl::CanCopyCut(LocalFrame* frame, bool default_value) const {
+bool EditorClient::CanCopyCut(LocalFrame* frame, bool default_value) const {
if (!frame->GetContentSettingsClient())
return default_value;
return frame->GetContentSettingsClient()->AllowWriteToClipboard(
default_value);
}
-bool EditorClientImpl::CanPaste(LocalFrame* frame, bool default_value) const {
+bool EditorClient::CanPaste(LocalFrame* frame, bool default_value) const {
if (!frame->GetContentSettingsClient())
return default_value;
return frame->GetContentSettingsClient()->AllowReadFromClipboard(
default_value);
}
-bool EditorClientImpl::HandleKeyboardEvent(LocalFrame* frame) {
- WebLocalFrameImpl* web_frame = WebLocalFrameImpl::FromFrame(frame);
+bool EditorClient::HandleKeyboardEvent(LocalFrame* frame) {
+ WebLocalFrameBase* web_frame = WebLocalFrameBase::FromFrame(frame);
return web_frame->Client()->HandleCurrentKeyboardEvent();
}
« no previous file with comments | « third_party/WebKit/Source/core/page/EditorClient.h ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698