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

Unified Diff: Source/web/EditorClientImpl.cpp

Issue 204673007: Move didChangeSelection to WebFrameClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update Created 6 years, 9 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 | « Source/web/EditorClientImpl.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/EditorClientImpl.cpp
diff --git a/Source/web/EditorClientImpl.cpp b/Source/web/EditorClientImpl.cpp
index 8a441518ebe122f048958f76a3284bb1397d2dab..28dab1c28e94f9e6a08726f7dbed7a38fac40dbf 100644
--- a/Source/web/EditorClientImpl.cpp
+++ b/Source/web/EditorClientImpl.cpp
@@ -27,6 +27,7 @@
#include "config.h"
#include "EditorClientImpl.h"
+#include "WebFrameClient.h"
#include "WebFrameImpl.h"
#include "WebPermissionClient.h"
#include "WebViewClient.h"
@@ -46,10 +47,11 @@ EditorClientImpl::~EditorClientImpl()
{
}
-void EditorClientImpl::respondToChangedSelection(WebCore::SelectionType selectionType)
+void EditorClientImpl::respondToChangedSelection(LocalFrame* frame, WebCore::SelectionType selectionType)
{
- if (m_webView->client())
- m_webView->client()->didChangeSelection(selectionType != WebCore::RangeSelection);
+ WebFrameImpl* webFrame = WebFrameImpl::fromFrame(frame);
+ if (webFrame->client())
+ webFrame->client()->didChangeSelection(selectionType != WebCore::RangeSelection);
}
void EditorClientImpl::respondToChangedContents()
« no previous file with comments | « Source/web/EditorClientImpl.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698