| 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 1769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1780 } else { | 1780 } else { |
| 1781 host_->ForwardGestureEventWithLatencyInfo(event, latency_info); | 1781 host_->ForwardGestureEventWithLatencyInfo(event, latency_info); |
| 1782 } | 1782 } |
| 1783 } | 1783 } |
| 1784 | 1784 |
| 1785 void RenderWidgetHostViewAndroid::MoveCaret(const gfx::Point& point) { | 1785 void RenderWidgetHostViewAndroid::MoveCaret(const gfx::Point& point) { |
| 1786 if (host_) | 1786 if (host_) |
| 1787 host_->MoveCaret(point); | 1787 host_->MoveCaret(point); |
| 1788 } | 1788 } |
| 1789 | 1789 |
| 1790 void RenderWidgetHostViewAndroid::ShowContextMenuAtPoint( |
| 1791 const gfx::Point& point) { |
| 1792 if (host_) |
| 1793 host_->ShowContextMenuAtPoint(point); |
| 1794 } |
| 1795 |
| 1790 void RenderWidgetHostViewAndroid::DismissTextHandles() { | 1796 void RenderWidgetHostViewAndroid::DismissTextHandles() { |
| 1791 if (selection_controller_) | 1797 if (selection_controller_) |
| 1792 selection_controller_->HideAndDisallowShowingAutomatically(); | 1798 selection_controller_->HideAndDisallowShowingAutomatically(); |
| 1793 } | 1799 } |
| 1794 | 1800 |
| 1795 void RenderWidgetHostViewAndroid::SetTextHandlesTemporarilyHidden(bool hidden) { | 1801 void RenderWidgetHostViewAndroid::SetTextHandlesTemporarilyHidden(bool hidden) { |
| 1796 if (selection_controller_) | 1802 if (selection_controller_) |
| 1797 selection_controller_->SetTemporarilyHidden(hidden); | 1803 selection_controller_->SetTemporarilyHidden(hidden); |
| 1798 } | 1804 } |
| 1799 | 1805 |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2130 | 2136 |
| 2131 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor(); | 2137 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor(); |
| 2132 if (!compositor) | 2138 if (!compositor) |
| 2133 return; | 2139 return; |
| 2134 | 2140 |
| 2135 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>( | 2141 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>( |
| 2136 overscroll_refresh_handler, compositor, view_.GetDipScale()); | 2142 overscroll_refresh_handler, compositor, view_.GetDipScale()); |
| 2137 } | 2143 } |
| 2138 | 2144 |
| 2139 } // namespace content | 2145 } // namespace content |
| OLD | NEW |