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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 1162853002: Remove IME API from Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove interface in WebWidgets.h Created 5 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 | « Source/web/WebViewImpl.h ('k') | public/web/WebWidget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 4b2b793106bbff3cc1cac35433e6a30f71e997af..9f36a8070a6b2992fc961c234a97530078f747b2 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -66,7 +66,6 @@
#include "core/html/HTMLTextAreaElement.h"
#include "core/html/canvas/WebGLRenderingContext.h"
#include "core/html/forms/PopupMenuClient.h"
-#include "core/html/ime/InputMethodContext.h"
#include "core/layout/LayoutPart.h"
#include "core/layout/LayoutView.h"
#include "core/layout/TextAutosizer.h"
@@ -2623,22 +2622,6 @@ bool WebViewImpl::selectionBounds(WebRect& anchor, WebRect& focus) const
return true;
}
-InputMethodContext* WebViewImpl::inputMethodContext()
-{
- if (!m_imeAcceptEvents)
- return 0;
-
- LocalFrame* focusedFrame = toLocalFrame(focusedCoreFrame());
- if (!focusedFrame)
- return 0;
-
- Element* target = focusedFrame->document()->focusedElement();
- if (target && target->hasInputMethodContext())
- return &target->inputMethodContext();
-
- return 0;
-}
-
WebPlugin* WebViewImpl::focusedPluginIfInputMethodSupported(LocalFrame* frame)
{
WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNode(frame, WebNode(focusedElement()));
@@ -2647,24 +2630,6 @@ WebPlugin* WebViewImpl::focusedPluginIfInputMethodSupported(LocalFrame* frame)
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();
-}
-
bool WebViewImpl::selectionTextDirection(WebTextDirection& start, WebTextDirection& end) const
{
const Frame* frame = focusedCoreFrame();
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/web/WebWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698