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

Unified Diff: sky/engine/web/WebViewImpl.cpp

Issue 880663002: Remove InputMethodContext. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/web/WebViewImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/web/WebViewImpl.cpp
diff --git a/sky/engine/web/WebViewImpl.cpp b/sky/engine/web/WebViewImpl.cpp
index 239a54874d791792058c51e0f2c7ab7c146d40d8..68392427ce8f41b5ff1a4b53fa7530810d987ec1 100644
--- a/sky/engine/web/WebViewImpl.cpp
+++ b/sky/engine/web/WebViewImpl.cpp
@@ -50,7 +50,6 @@
#include "sky/engine/core/frame/NewEventHandler.h"
#include "sky/engine/core/frame/Settings.h"
#include "sky/engine/core/html/HTMLImportElement.h"
-#include "sky/engine/core/html/ime/InputMethodContext.h"
#include "sky/engine/core/loader/FrameLoader.h"
#include "sky/engine/core/loader/UniqueIdentifier.h"
#include "sky/engine/core/page/AutoscrollController.h"
@@ -575,40 +574,6 @@ WebString WebViewImpl::inputModeOfFocusedElement()
return WebString();
}
-InputMethodContext* WebViewImpl::inputMethodContext()
-{
- if (!m_imeAcceptEvents)
- return 0;
-
- LocalFrame* focusedFrame = focusedCoreFrame();
- if (!focusedFrame)
- return 0;
-
- Element* target = focusedFrame->document()->focusedElement();
- if (target && target->hasInputMethodContext())
- return &target->inputMethodContext();
-
- return 0;
-}
-
-void WebViewImpl::didShowCandidateWindow()
-{
- if (InputMethodContext* context = inputMethodContext())
- context->dispatchCandidateWindowShowEvent();
-}
-
-void WebViewImpl::didUpdateCandidateWindow()
-{
- if (InputMethodContext* context = inputMethodContext())
- context->dispatchCandidateWindowUpdateEvent();
-}
-
-void WebViewImpl::didHideCandidateWindow()
-{
- if (InputMethodContext* context = inputMethodContext())
- context->dispatchCandidateWindowHideEvent();
-}
-
WebVector<WebCompositionUnderline> WebViewImpl::compositionUnderlines() const
{
const LocalFrame* focused = focusedCoreFrame();
« no previous file with comments | « sky/engine/web/WebViewImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698