OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |