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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2864833002: Tapping handle shouldn't select misspelled word (Closed)
Patch Set: Mac test 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 2400 matching lines...) Expand 10 before | Expand all | Expand 10 after
2411 } 2411 }
2412 2412
2413 #endif // defined(OS_ANDROID) 2413 #endif // defined(OS_ANDROID)
2414 2414
2415 void RenderViewImpl::OnShowContextMenu( 2415 void RenderViewImpl::OnShowContextMenu(
2416 ui::MenuSourceType source_type, const gfx::Point& location) { 2416 ui::MenuSourceType source_type, const gfx::Point& location) {
2417 input_handler_->set_context_menu_source_type(source_type); 2417 input_handler_->set_context_menu_source_type(source_type);
2418 has_host_context_menu_location_ = true; 2418 has_host_context_menu_location_ = true;
2419 host_context_menu_location_ = location; 2419 host_context_menu_location_ = location;
2420 if (webview()) 2420 if (webview())
2421 webview()->ShowContextMenu(); 2421 webview()->ShowContextMenu(
2422 static_cast<blink::WebMenuSourceType>(source_type));
2422 has_host_context_menu_location_ = false; 2423 has_host_context_menu_location_ = false;
2423 } 2424 }
2424 2425
2425 #if defined(OS_ANDROID) 2426 #if defined(OS_ANDROID)
2426 bool RenderViewImpl::DidTapMultipleTargets( 2427 bool RenderViewImpl::DidTapMultipleTargets(
2427 const WebSize& inner_viewport_offset, 2428 const WebSize& inner_viewport_offset,
2428 const WebRect& touch_rect, 2429 const WebRect& touch_rect,
2429 const WebVector<WebRect>& target_rects) { 2430 const WebVector<WebRect>& target_rects) {
2430 // Never show a disambiguation popup when accessibility is enabled, 2431 // Never show a disambiguation popup when accessibility is enabled,
2431 // as this interferes with "touch exploration". 2432 // as this interferes with "touch exploration".
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
2674 input_event.GetCoalescedEventsPointers(), latency_info, 2675 input_event.GetCoalescedEventsPointers(), latency_info,
2675 dispatch_type); 2676 dispatch_type);
2676 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 2677 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
2677 } 2678 }
2678 idle_user_detector_->ActivityDetected(); 2679 idle_user_detector_->ActivityDetected();
2679 return RenderWidget::HandleInputEvent(input_event, latency_info, 2680 return RenderWidget::HandleInputEvent(input_event, latency_info,
2680 dispatch_type); 2681 dispatch_type);
2681 } 2682 }
2682 2683
2683 } // namespace content 2684 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698