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

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

Issue 2864833002: Tapping handle shouldn't select misspelled word (Closed)
Patch Set: Fixed naming Created 3 years, 6 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 /* 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 #include "platform/wtf/AutoReset.h" 128 #include "platform/wtf/AutoReset.h"
129 #include "platform/wtf/CurrentTime.h" 129 #include "platform/wtf/CurrentTime.h"
130 #include "platform/wtf/PtrUtil.h" 130 #include "platform/wtf/PtrUtil.h"
131 #include "platform/wtf/RefPtr.h" 131 #include "platform/wtf/RefPtr.h"
132 #include "public/platform/Platform.h" 132 #include "public/platform/Platform.h"
133 #include "public/platform/WebCompositeAndReadbackAsyncCallback.h" 133 #include "public/platform/WebCompositeAndReadbackAsyncCallback.h"
134 #include "public/platform/WebCompositorSupport.h" 134 #include "public/platform/WebCompositorSupport.h"
135 #include "public/platform/WebFloatPoint.h" 135 #include "public/platform/WebFloatPoint.h"
136 #include "public/platform/WebGestureCurve.h" 136 #include "public/platform/WebGestureCurve.h"
137 #include "public/platform/WebImage.h" 137 #include "public/platform/WebImage.h"
138 #include "public/platform/WebInputEvent.h"
138 #include "public/platform/WebLayerTreeView.h" 139 #include "public/platform/WebLayerTreeView.h"
139 #include "public/platform/WebTextInputInfo.h" 140 #include "public/platform/WebTextInputInfo.h"
140 #include "public/platform/WebURLRequest.h" 141 #include "public/platform/WebURLRequest.h"
141 #include "public/platform/WebVector.h" 142 #include "public/platform/WebVector.h"
142 #include "public/web/WebAXObject.h" 143 #include "public/web/WebAXObject.h"
143 #include "public/web/WebActiveWheelFlingParameters.h" 144 #include "public/web/WebActiveWheelFlingParameters.h"
144 #include "public/web/WebAutofillClient.h" 145 #include "public/web/WebAutofillClient.h"
145 #include "public/web/WebConsoleMessage.h" 146 #include "public/web/WebConsoleMessage.h"
146 #include "public/web/WebElement.h" 147 #include "public/web/WebElement.h"
147 #include "public/web/WebFrame.h" 148 #include "public/web/WebFrame.h"
148 #include "public/web/WebFrameClient.h" 149 #include "public/web/WebFrameClient.h"
149 #include "public/web/WebFrameWidget.h" 150 #include "public/web/WebFrameWidget.h"
150 #include "public/web/WebHitTestResult.h" 151 #include "public/web/WebHitTestResult.h"
151 #include "public/web/WebInputElement.h" 152 #include "public/web/WebInputElement.h"
152 #include "public/web/WebMeaningfulLayout.h" 153 #include "public/web/WebMeaningfulLayout.h"
153 #include "public/web/WebMediaPlayerAction.h" 154 #include "public/web/WebMediaPlayerAction.h"
155 #include "public/web/WebMenuSourceType.h"
154 #include "public/web/WebNode.h" 156 #include "public/web/WebNode.h"
155 #include "public/web/WebPlugin.h" 157 #include "public/web/WebPlugin.h"
156 #include "public/web/WebPluginAction.h" 158 #include "public/web/WebPluginAction.h"
157 #include "public/web/WebRange.h" 159 #include "public/web/WebRange.h"
158 #include "public/web/WebScopedUserGesture.h" 160 #include "public/web/WebScopedUserGesture.h"
159 #include "public/web/WebSelection.h" 161 #include "public/web/WebSelection.h"
160 #include "public/web/WebViewClient.h" 162 #include "public/web/WebViewClient.h"
161 #include "public/web/WebWindowFeatures.h" 163 #include "public/web/WebWindowFeatures.h"
162 #include "web/AnimationWorkletProxyClientImpl.h" 164 #include "web/AnimationWorkletProxyClientImpl.h"
163 #include "web/CompositorMutatorImpl.h" 165 #include "web/CompositorMutatorImpl.h"
(...skipping 3324 matching lines...) Expand 10 before | Expand all | Expand 10 after
3488 ContextMenu* menu = page_->GetContextMenuController().GetContextMenu(); 3490 ContextMenu* menu = page_->GetContextMenuController().GetContextMenu();
3489 if (!menu) 3491 if (!menu)
3490 return; 3492 return;
3491 const ContextMenuItem* item = menu->ItemWithAction( 3493 const ContextMenuItem* item = menu->ItemWithAction(
3492 static_cast<ContextMenuAction>(kContextMenuItemBaseCustomTag + action)); 3494 static_cast<ContextMenuAction>(kContextMenuItemBaseCustomTag + action));
3493 if (item) 3495 if (item)
3494 page_->GetContextMenuController().ContextMenuItemSelected(item); 3496 page_->GetContextMenuController().ContextMenuItemSelected(item);
3495 page_->GetContextMenuController().ClearContextMenu(); 3497 page_->GetContextMenuController().ClearContextMenu();
3496 } 3498 }
3497 3499
3498 void WebViewImpl::ShowContextMenu() { 3500 void WebViewImpl::ShowContextMenu(WebMenuSourceType source_type) {
3499 if (!GetPage()) 3501 if (!GetPage())
3500 return; 3502 return;
3501 3503
3502 GetPage()->GetContextMenuController().ClearContextMenu(); 3504 GetPage()->GetContextMenuController().ClearContextMenu();
3503 { 3505 {
3504 ContextMenuAllowedScope scope; 3506 ContextMenuAllowedScope scope;
3505 if (LocalFrame* focused_frame = 3507 if (LocalFrame* focused_frame = ToLocalFrame(
3506 ToLocalFrame(GetPage()->GetFocusController().FocusedOrMainFrame())) 3508 GetPage()->GetFocusController().FocusedOrMainFrame())) {
3507 focused_frame->GetEventHandler().ShowNonLocatedContextMenu(nullptr); 3509 focused_frame->GetEventHandler().ShowNonLocatedContextMenu(nullptr,
3510 source_type);
3511 }
3508 } 3512 }
3509 } 3513 }
3510 3514
3511 void WebViewImpl::DidCloseContextMenu() { 3515 void WebViewImpl::DidCloseContextMenu() {
3512 LocalFrame* frame = page_->GetFocusController().FocusedFrame(); 3516 LocalFrame* frame = page_->GetFocusController().FocusedFrame();
3513 if (frame) 3517 if (frame)
3514 frame->Selection().SetCaretBlinkingSuspended(false); 3518 frame->Selection().SetCaretBlinkingSuspended(false);
3515 } 3519 }
3516 3520
3517 void WebViewImpl::HidePopups() { 3521 void WebViewImpl::HidePopups() {
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
4151 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) 4155 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame())
4152 return nullptr; 4156 return nullptr;
4153 return focused_frame; 4157 return focused_frame;
4154 } 4158 }
4155 4159
4156 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { 4160 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const {
4157 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; 4161 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr;
4158 } 4162 }
4159 4163
4160 } // namespace blink 4164 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698