OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 #include "core/frame/LocalFrame.h" | 56 #include "core/frame/LocalFrame.h" |
57 #include "core/frame/LocalFrameClient.h" | 57 #include "core/frame/LocalFrameClient.h" |
58 #include "core/frame/PageScaleConstraintsSet.h" | 58 #include "core/frame/PageScaleConstraintsSet.h" |
59 #include "core/frame/RemoteFrame.h" | 59 #include "core/frame/RemoteFrame.h" |
60 #include "core/frame/Settings.h" | 60 #include "core/frame/Settings.h" |
61 #include "core/frame/UseCounter.h" | 61 #include "core/frame/UseCounter.h" |
62 #include "core/frame/VisualViewport.h" | 62 #include "core/frame/VisualViewport.h" |
63 #include "core/html/HTMLMediaElement.h" | 63 #include "core/html/HTMLMediaElement.h" |
64 #include "core/html/HTMLPlugInElement.h" | 64 #include "core/html/HTMLPlugInElement.h" |
65 #include "core/html/HTMLTextAreaElement.h" | 65 #include "core/html/HTMLTextAreaElement.h" |
| 66 #include "core/input/ContextMenuAllowedScope.h" |
66 #include "core/input/EventHandler.h" | 67 #include "core/input/EventHandler.h" |
67 #include "core/input/TouchActionUtil.h" | 68 #include "core/input/TouchActionUtil.h" |
68 #include "core/layout/LayoutPart.h" | 69 #include "core/layout/LayoutPart.h" |
69 #include "core/layout/TextAutosizer.h" | 70 #include "core/layout/TextAutosizer.h" |
70 #include "core/layout/api/LayoutViewItem.h" | 71 #include "core/layout/api/LayoutViewItem.h" |
71 #include "core/layout/compositing/PaintLayerCompositor.h" | 72 #include "core/layout/compositing/PaintLayerCompositor.h" |
72 #include "core/loader/FrameLoadRequest.h" | 73 #include "core/loader/FrameLoadRequest.h" |
73 #include "core/loader/FrameLoader.h" | 74 #include "core/loader/FrameLoader.h" |
74 #include "core/loader/FrameLoaderStateMachine.h" | 75 #include "core/loader/FrameLoaderStateMachine.h" |
75 #include "core/page/ContextMenuController.h" | 76 #include "core/page/ContextMenuController.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 #include "public/web/WebPluginAction.h" | 150 #include "public/web/WebPluginAction.h" |
150 #include "public/web/WebRange.h" | 151 #include "public/web/WebRange.h" |
151 #include "public/web/WebScopedUserGesture.h" | 152 #include "public/web/WebScopedUserGesture.h" |
152 #include "public/web/WebSelection.h" | 153 #include "public/web/WebSelection.h" |
153 #include "public/web/WebViewClient.h" | 154 #include "public/web/WebViewClient.h" |
154 #include "public/web/WebWindowFeatures.h" | 155 #include "public/web/WebWindowFeatures.h" |
155 #include "web/AnimationWorkletProxyClientImpl.h" | 156 #include "web/AnimationWorkletProxyClientImpl.h" |
156 #include "web/CompositionUnderlineVectorBuilder.h" | 157 #include "web/CompositionUnderlineVectorBuilder.h" |
157 #include "web/CompositorMutatorImpl.h" | 158 #include "web/CompositorMutatorImpl.h" |
158 #include "web/CompositorWorkerProxyClientImpl.h" | 159 #include "web/CompositorWorkerProxyClientImpl.h" |
159 #include "web/ContextMenuAllowedScope.h" | |
160 #include "web/DedicatedWorkerMessagingProxyProviderImpl.h" | 160 #include "web/DedicatedWorkerMessagingProxyProviderImpl.h" |
161 #include "web/DevToolsEmulator.h" | 161 #include "web/DevToolsEmulator.h" |
162 #include "web/FullscreenController.h" | 162 #include "web/FullscreenController.h" |
163 #include "web/InspectorOverlay.h" | 163 #include "web/InspectorOverlay.h" |
164 #include "web/LinkHighlightImpl.h" | 164 #include "web/LinkHighlightImpl.h" |
165 #include "web/PageOverlay.h" | 165 #include "web/PageOverlay.h" |
166 #include "web/PrerendererClientImpl.h" | 166 #include "web/PrerendererClientImpl.h" |
167 #include "web/ResizeViewportAnchor.h" | 167 #include "web/ResizeViewportAnchor.h" |
168 #include "web/RotationViewportAnchor.h" | 168 #include "web/RotationViewportAnchor.h" |
169 #include "web/SpeechRecognitionClientProxy.h" | 169 #include "web/SpeechRecognitionClientProxy.h" |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 EnableTapHighlights(highlight_nodes); | 838 EnableTapHighlights(highlight_nodes); |
839 for (size_t i = 0; i < link_highlights_.size(); ++i) | 839 for (size_t i = 0; i < link_highlights_.size(); ++i) |
840 link_highlights_[i]->StartHighlightAnimationIfNeeded(); | 840 link_highlights_[i]->StartHighlightAnimationIfNeeded(); |
841 event_result = WebInputEventResult::kHandledSystem; | 841 event_result = WebInputEventResult::kHandledSystem; |
842 event_cancelled = true; | 842 event_cancelled = true; |
843 break; | 843 break; |
844 } | 844 } |
845 } | 845 } |
846 } | 846 } |
847 | 847 |
848 event_result = | 848 { |
849 MainFrameImpl()->GetFrame()->GetEventHandler().HandleGestureEvent( | 849 ContextMenuAllowedScope scope; |
850 targeted_event); | 850 event_result = |
| 851 MainFrameImpl()->GetFrame()->GetEventHandler().HandleGestureEvent( |
| 852 targeted_event); |
| 853 } |
| 854 |
851 if (page_popup_ && last_hidden_page_popup_ && | 855 if (page_popup_ && last_hidden_page_popup_ && |
852 page_popup_->HasSamePopupClient(last_hidden_page_popup_.Get())) { | 856 page_popup_->HasSamePopupClient(last_hidden_page_popup_.Get())) { |
853 // The tap triggered a page popup that is the same as the one we just | 857 // The tap triggered a page popup that is the same as the one we just |
854 // closed. It needs to be closed. | 858 // closed. It needs to be closed. |
855 CancelPagePopup(); | 859 CancelPagePopup(); |
856 } | 860 } |
857 last_hidden_page_popup_ = nullptr; | 861 last_hidden_page_popup_ = nullptr; |
858 break; | 862 break; |
859 } | 863 } |
860 case WebInputEvent::kGestureTwoFingerTap: | 864 case WebInputEvent::kGestureTwoFingerTap: |
(...skipping 3296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4157 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) | 4161 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) |
4158 return nullptr; | 4162 return nullptr; |
4159 return focused_frame; | 4163 return focused_frame; |
4160 } | 4164 } |
4161 | 4165 |
4162 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { | 4166 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { |
4163 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; | 4167 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; |
4164 } | 4168 } |
4165 | 4169 |
4166 } // namespace blink | 4170 } // namespace blink |
OLD | NEW |