| OLD | NEW |
| 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" |
| 11 #include "core/editing/Editor.h" | 11 #include "core/editing/Editor.h" |
| 12 #include "core/editing/EphemeralRange.h" | 12 #include "core/editing/EphemeralRange.h" |
| 13 #include "core/editing/FrameSelection.h" | 13 #include "core/editing/FrameSelection.h" |
| 14 #include "core/editing/InputMethodController.h" | 14 #include "core/editing/InputMethodController.h" |
| 15 #include "core/editing/PlainTextRange.h" | 15 #include "core/editing/PlainTextRange.h" |
| 16 #include "core/exported/WebPluginContainerBase.h" | |
| 17 #include "core/frame/LocalFrame.h" | 16 #include "core/frame/LocalFrame.h" |
| 18 #include "core/page/FocusController.h" | 17 #include "core/page/FocusController.h" |
| 19 #include "core/page/Page.h" | 18 #include "core/page/Page.h" |
| 20 #include "platform/UserGestureIndicator.h" | 19 #include "platform/UserGestureIndicator.h" |
| 21 #include "public/platform/WebString.h" | 20 #include "public/platform/WebString.h" |
| 22 #include "public/web/WebPlugin.h" | 21 #include "public/web/WebPlugin.h" |
| 23 #include "public/web/WebRange.h" | 22 #include "public/web/WebRange.h" |
| 24 #include "web/WebLocalFrameImpl.h" | 23 #include "web/WebLocalFrameImpl.h" |
| 24 #include "web/WebPluginContainerImpl.h" |
| 25 | 25 |
| 26 namespace blink { | 26 namespace blink { |
| 27 | 27 |
| 28 WebInputMethodControllerImpl::WebInputMethodControllerImpl( | 28 WebInputMethodControllerImpl::WebInputMethodControllerImpl( |
| 29 WebLocalFrameImpl* web_local_frame) | 29 WebLocalFrameImpl* web_local_frame) |
| 30 : web_local_frame_(web_local_frame) {} | 30 : web_local_frame_(web_local_frame) {} |
| 31 | 31 |
| 32 WebInputMethodControllerImpl::~WebInputMethodControllerImpl() {} | 32 WebInputMethodControllerImpl::~WebInputMethodControllerImpl() {} |
| 33 | 33 |
| 34 // static | 34 // static |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 return web_local_frame_->GetFrame(); | 151 return web_local_frame_->GetFrame(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 InputMethodController& WebInputMethodControllerImpl::GetInputMethodController() | 154 InputMethodController& WebInputMethodControllerImpl::GetInputMethodController() |
| 155 const { | 155 const { |
| 156 return GetFrame()->GetInputMethodController(); | 156 return GetFrame()->GetInputMethodController(); |
| 157 } | 157 } |
| 158 | 158 |
| 159 WebPlugin* WebInputMethodControllerImpl::FocusedPluginIfInputMethodSupported() | 159 WebPlugin* WebInputMethodControllerImpl::FocusedPluginIfInputMethodSupported() |
| 160 const { | 160 const { |
| 161 WebPluginContainerBase* container = | 161 WebPluginContainerImpl* container = |
| 162 WebLocalFrameImpl::CurrentPluginContainer(GetFrame()); | 162 WebLocalFrameImpl::CurrentPluginContainer(GetFrame()); |
| 163 if (container && container->SupportsInputMethod()) | 163 if (container && container->SupportsInputMethod()) |
| 164 return container->Plugin(); | 164 return container->Plugin(); |
| 165 return nullptr; | 165 return nullptr; |
| 166 } | 166 } |
| 167 | 167 |
| 168 } // namespace blink | 168 } // namespace blink |
| OLD | NEW |