OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include <memory> | 33 #include <memory> |
34 | 34 |
35 #include "core/dom/DocumentUserGestureToken.h" | 35 #include "core/dom/DocumentUserGestureToken.h" |
36 #include "core/editing/CompositionUnderlineVectorBuilder.h" | 36 #include "core/editing/CompositionUnderlineVectorBuilder.h" |
37 #include "core/editing/EditingUtilities.h" | 37 #include "core/editing/EditingUtilities.h" |
38 #include "core/editing/Editor.h" | 38 #include "core/editing/Editor.h" |
39 #include "core/editing/FrameSelection.h" | 39 #include "core/editing/FrameSelection.h" |
40 #include "core/editing/InputMethodController.h" | 40 #include "core/editing/InputMethodController.h" |
41 #include "core/editing/PlainTextRange.h" | 41 #include "core/editing/PlainTextRange.h" |
42 #include "core/events/WebInputEventConversion.h" | 42 #include "core/events/WebInputEventConversion.h" |
| 43 #include "core/exported/WebPluginContainerBase.h" |
43 #include "core/exported/WebViewBase.h" | 44 #include "core/exported/WebViewBase.h" |
44 #include "core/frame/FrameView.h" | 45 #include "core/frame/FrameView.h" |
45 #include "core/frame/RemoteFrame.h" | 46 #include "core/frame/RemoteFrame.h" |
46 #include "core/frame/Settings.h" | 47 #include "core/frame/Settings.h" |
47 #include "core/frame/VisualViewport.h" | 48 #include "core/frame/VisualViewport.h" |
48 #include "core/html/HTMLTextAreaElement.h" | 49 #include "core/html/HTMLTextAreaElement.h" |
49 #include "core/input/EventHandler.h" | 50 #include "core/input/EventHandler.h" |
50 #include "core/layout/LayoutView.h" | 51 #include "core/layout/LayoutView.h" |
51 #include "core/layout/api/LayoutViewItem.h" | 52 #include "core/layout/api/LayoutViewItem.h" |
52 #include "core/layout/compositing/PaintLayerCompositor.h" | 53 #include "core/layout/compositing/PaintLayerCompositor.h" |
(...skipping 13 matching lines...) Expand all Loading... |
66 #include "public/web/WebRange.h" | 67 #include "public/web/WebRange.h" |
67 #include "public/web/WebWidgetClient.h" | 68 #include "public/web/WebWidgetClient.h" |
68 #include "web/AnimationWorkletProxyClientImpl.h" | 69 #include "web/AnimationWorkletProxyClientImpl.h" |
69 #include "web/CompositorMutatorImpl.h" | 70 #include "web/CompositorMutatorImpl.h" |
70 #include "web/CompositorWorkerProxyClientImpl.h" | 71 #include "web/CompositorWorkerProxyClientImpl.h" |
71 #include "web/ContextMenuAllowedScope.h" | 72 #include "web/ContextMenuAllowedScope.h" |
72 #include "web/WebDevToolsAgentImpl.h" | 73 #include "web/WebDevToolsAgentImpl.h" |
73 #include "web/WebInputMethodControllerImpl.h" | 74 #include "web/WebInputMethodControllerImpl.h" |
74 #include "web/WebLocalFrameImpl.h" | 75 #include "web/WebLocalFrameImpl.h" |
75 #include "web/WebPagePopupImpl.h" | 76 #include "web/WebPagePopupImpl.h" |
76 #include "web/WebPluginContainerImpl.h" | |
77 #include "web/WebRemoteFrameImpl.h" | 77 #include "web/WebRemoteFrameImpl.h" |
78 #include "web/WebViewFrameWidget.h" | 78 #include "web/WebViewFrameWidget.h" |
79 | 79 |
80 namespace blink { | 80 namespace blink { |
81 | 81 |
82 // WebFrameWidget ------------------------------------------------------------ | 82 // WebFrameWidget ------------------------------------------------------------ |
83 | 83 |
84 WebFrameWidget* WebFrameWidget::Create(WebWidgetClient* client, | 84 WebFrameWidget* WebFrameWidget::Create(WebWidgetClient* client, |
85 WebLocalFrame* local_root) { | 85 WebLocalFrame* local_root) { |
86 DCHECK(client) << "A valid WebWidgetClient must be supplied."; | 86 DCHECK(client) << "A valid WebWidgetClient must be supplied."; |
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1192 | 1192 |
1193 LocalFrame* WebFrameWidgetImpl::FocusedLocalFrameInWidget() const { | 1193 LocalFrame* WebFrameWidgetImpl::FocusedLocalFrameInWidget() const { |
1194 LocalFrame* frame = GetPage()->GetFocusController().FocusedFrame(); | 1194 LocalFrame* frame = GetPage()->GetFocusController().FocusedFrame(); |
1195 return (frame && frame->LocalFrameRoot() == local_root_->GetFrame()) | 1195 return (frame && frame->LocalFrameRoot() == local_root_->GetFrame()) |
1196 ? frame | 1196 ? frame |
1197 : nullptr; | 1197 : nullptr; |
1198 } | 1198 } |
1199 | 1199 |
1200 WebPlugin* WebFrameWidgetImpl::FocusedPluginIfInputMethodSupported( | 1200 WebPlugin* WebFrameWidgetImpl::FocusedPluginIfInputMethodSupported( |
1201 LocalFrame* frame) const { | 1201 LocalFrame* frame) const { |
1202 WebPluginContainerImpl* container = | 1202 WebPluginContainerBase* container = |
1203 WebLocalFrameImpl::CurrentPluginContainer(frame); | 1203 WebLocalFrameImpl::CurrentPluginContainer(frame); |
1204 if (container && container->SupportsInputMethod()) | 1204 if (container && container->SupportsInputMethod()) |
1205 return container->Plugin(); | 1205 return container->Plugin(); |
1206 return nullptr; | 1206 return nullptr; |
1207 } | 1207 } |
1208 | 1208 |
1209 LocalFrame* WebFrameWidgetImpl::FocusedLocalFrameAvailableForIme() const { | 1209 LocalFrame* WebFrameWidgetImpl::FocusedLocalFrameAvailableForIme() const { |
1210 if (!ime_accept_events_) | 1210 if (!ime_accept_events_) |
1211 return nullptr; | 1211 return nullptr; |
1212 return FocusedLocalFrameInWidget(); | 1212 return FocusedLocalFrameInWidget(); |
1213 } | 1213 } |
1214 | 1214 |
1215 } // namespace blink | 1215 } // namespace blink |
OLD | NEW |