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

Side by Side Diff: third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp

Issue 2888203006: Move the logic to retrieve the WebPluginContainer to LocalFrame and Node. (Closed)
Patch Set: Ensure we have a valid PluginView before using it. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "web/WebInputMethodControllerImpl.h" 5 #include "web/WebInputMethodControllerImpl.h"
6 6
7 #include "core/InputTypeNames.h" 7 #include "core/InputTypeNames.h"
8 #include "core/dom/DocumentUserGestureToken.h" 8 #include "core/dom/DocumentUserGestureToken.h"
9 #include "core/editing/CompositionUnderlineVectorBuilder.h" 9 #include "core/editing/CompositionUnderlineVectorBuilder.h"
10 #include "core/editing/EditingUtilities.h" 10 #include "core/editing/EditingUtilities.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 return web_frame_->GetFrame(); 150 return web_frame_->GetFrame();
151 } 151 }
152 152
153 InputMethodController& WebInputMethodControllerImpl::GetInputMethodController() 153 InputMethodController& WebInputMethodControllerImpl::GetInputMethodController()
154 const { 154 const {
155 return GetFrame()->GetInputMethodController(); 155 return GetFrame()->GetInputMethodController();
156 } 156 }
157 157
158 WebPlugin* WebInputMethodControllerImpl::FocusedPluginIfInputMethodSupported() 158 WebPlugin* WebInputMethodControllerImpl::FocusedPluginIfInputMethodSupported()
159 const { 159 const {
160 WebPluginContainerBase* container = 160 WebPluginContainerBase* container = GetFrame()->GetWebPluginContainerBase();
161 WebLocalFrameImpl::CurrentPluginContainer(GetFrame()); 161 if (container && container->SupportsInputMethod()) {
162 if (container && container->SupportsInputMethod())
163 return container->Plugin(); 162 return container->Plugin();
163 }
164 return nullptr; 164 return nullptr;
165 } 165 }
166 166
167 } // namespace blink 167 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698