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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

Issue 2892393002: Move WebInputMethodControllerImpl to core/exported/ & break dependencies. (Closed)
Patch Set: Rebase. 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/web/WebFrameWidgetImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
index ce41639574de91756b960ca8632733ca2be19d3e..e3806f2d42ac8a65017ab413962f3f1832fb76ee 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
@@ -72,7 +72,6 @@
#include "web/CompositorMutatorImpl.h"
#include "web/CompositorWorkerProxyClientImpl.h"
#include "web/WebDevToolsAgentImpl.h"
-#include "web/WebInputMethodControllerImpl.h"
#include "web/WebPagePopupImpl.h"
#include "web/WebRemoteFrameImpl.h"
#include "web/WebViewFrameWidget.h"
@@ -459,9 +458,11 @@ void WebFrameWidgetImpl::UpdateBaseBackgroundColor() {
local_root_->GetFrameView()->SetBaseBackgroundColor(BaseBackgroundColor());
}
-WebInputMethodControllerImpl*
+WebInputMethodController*
WebFrameWidgetImpl::GetActiveWebInputMethodController() const {
- return WebInputMethodControllerImpl::FromFrame(FocusedLocalFrameInWidget());
+ WebLocalFrameBase* local_frame =
+ WebLocalFrameBase::FromFrame(FocusedLocalFrameInWidget());
+ return local_frame ? local_frame->GetInputMethodController() : nullptr;
}
void WebFrameWidgetImpl::ScheduleAnimation() {
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetImpl.h ('k') | third_party/WebKit/Source/web/WebInputMethodControllerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698