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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 2864833002: Tapping handle shouldn't select misspelled word (Closed)
Patch Set: yosin's nits 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 // 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/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <set> 9 #include <set>
10 #include <tuple> 10 #include <tuple>
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 std::move(synthetic_gesture), on_complete); 1320 std::move(synthetic_gesture), on_complete);
1321 } 1321 }
1322 } 1322 }
1323 1323
1324 void RenderWidgetHostImpl::SetCursor(const WebCursor& cursor) { 1324 void RenderWidgetHostImpl::SetCursor(const WebCursor& cursor) {
1325 if (!view_) 1325 if (!view_)
1326 return; 1326 return;
1327 view_->UpdateCursor(cursor); 1327 view_->UpdateCursor(cursor);
1328 } 1328 }
1329 1329
1330 void RenderWidgetHostImpl::ShowContextMenuAtPoint(const gfx::Point& point) { 1330 void RenderWidgetHostImpl::ShowContextMenuAtPoint(
1331 Send(new ViewMsg_ShowContextMenu( 1331 const gfx::Point& point,
1332 GetRoutingID(), ui::MENU_SOURCE_MOUSE, point)); 1332 const ui::MenuSourceType source_type) {
1333 Send(new ViewMsg_ShowContextMenu(GetRoutingID(), source_type, point));
sadrul 2017/05/25 04:13:50 Can you update aura code [1] to call into ShowCont
amaralp1 2017/05/25 04:39:53 Done.
1333 } 1334 }
1334 1335
1335 void RenderWidgetHostImpl::SendCursorVisibilityState(bool is_visible) { 1336 void RenderWidgetHostImpl::SendCursorVisibilityState(bool is_visible) {
1336 Send(new InputMsg_CursorVisibilityChange(GetRoutingID(), is_visible)); 1337 Send(new InputMsg_CursorVisibilityChange(GetRoutingID(), is_visible));
1337 } 1338 }
1338 1339
1339 int64_t RenderWidgetHostImpl::GetLatencyComponentId() const { 1340 int64_t RenderWidgetHostImpl::GetLatencyComponentId() const {
1340 return latency_tracker_.latency_component_id(); 1341 return latency_tracker_.latency_component_id();
1341 } 1342 }
1342 1343
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after
2657 device::mojom::WakeLockType::PreventDisplaySleep, 2658 device::mojom::WakeLockType::PreventDisplaySleep,
2658 device::mojom::WakeLockReason::ReasonOther, "GetSnapshot", 2659 device::mojom::WakeLockReason::ReasonOther, "GetSnapshot",
2659 std::move(request)); 2660 std::move(request));
2660 } 2661 }
2661 } 2662 }
2662 return wake_lock_.get(); 2663 return wake_lock_.get();
2663 } 2664 }
2664 #endif 2665 #endif
2665 2666
2666 } // namespace content 2667 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698