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

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

Issue 2727203003: Revert of Make SelectionPopupController.ShowPastePopup only be triggered by Blink (Closed)
Patch Set: Created 3 years, 9 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_view_android.h" 5 #include "content/browser/renderer_host/render_widget_host_view_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 ui::WebInputEventTraits::CreateLatencyInfoForWebGestureEvent(event); 1651 ui::WebInputEventTraits::CreateLatencyInfoForWebGestureEvent(event);
1652 host_->ForwardGestureEventWithLatencyInfo(event, latency_info); 1652 host_->ForwardGestureEventWithLatencyInfo(event, latency_info);
1653 } 1653 }
1654 } 1654 }
1655 1655
1656 void RenderWidgetHostViewAndroid::MoveCaret(const gfx::Point& point) { 1656 void RenderWidgetHostViewAndroid::MoveCaret(const gfx::Point& point) {
1657 if (host_) 1657 if (host_)
1658 host_->MoveCaret(point); 1658 host_->MoveCaret(point);
1659 } 1659 }
1660 1660
1661 void RenderWidgetHostViewAndroid::ShowContextMenuAtPoint(
1662 const gfx::Point& point) {
1663 if (host_)
1664 host_->ShowContextMenuAtPoint(point);
1665 }
1666
1667 void RenderWidgetHostViewAndroid::DismissTextHandles() { 1661 void RenderWidgetHostViewAndroid::DismissTextHandles() {
1668 if (selection_controller_) 1662 if (selection_controller_)
1669 selection_controller_->HideAndDisallowShowingAutomatically(); 1663 selection_controller_->HideAndDisallowShowingAutomatically();
1670 } 1664 }
1671 1665
1672 void RenderWidgetHostViewAndroid::SetTextHandlesTemporarilyHidden(bool hidden) { 1666 void RenderWidgetHostViewAndroid::SetTextHandlesTemporarilyHidden(bool hidden) {
1673 if (selection_controller_) 1667 if (selection_controller_)
1674 selection_controller_->SetTemporarilyHidden(hidden); 1668 selection_controller_->SetTemporarilyHidden(hidden);
1675 } 1669 }
1676 1670
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1992 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor(); 1986 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor();
1993 if (!compositor) 1987 if (!compositor)
1994 return; 1988 return;
1995 1989
1996 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>( 1990 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>(
1997 overscroll_refresh_handler, compositor, 1991 overscroll_refresh_handler, compositor,
1998 ui::GetScaleFactorForNativeView(GetNativeView())); 1992 ui::GetScaleFactorForNativeView(GetNativeView()));
1999 } 1993 }
2000 1994
2001 } // namespace content 1995 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.h ('k') | content/browser/web_contents/web_contents_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698