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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
943 | 943 |
944 void RenderWidgetHostViewAndroid::SetDoubleTapSupportEnabled(bool enabled) { | 944 void RenderWidgetHostViewAndroid::SetDoubleTapSupportEnabled(bool enabled) { |
945 gesture_provider_.SetDoubleTapSupportForPlatformEnabled(enabled); | 945 gesture_provider_.SetDoubleTapSupportForPlatformEnabled(enabled); |
946 } | 946 } |
947 | 947 |
948 void RenderWidgetHostViewAndroid::SetMultiTouchZoomSupportEnabled( | 948 void RenderWidgetHostViewAndroid::SetMultiTouchZoomSupportEnabled( |
949 bool enabled) { | 949 bool enabled) { |
950 gesture_provider_.SetMultiTouchZoomSupportEnabled(enabled); | 950 gesture_provider_.SetMultiTouchZoomSupportEnabled(enabled); |
951 } | 951 } |
952 | 952 |
| 953 void RenderWidgetHostViewAndroid::ShowTextSuggestionMenu( |
| 954 const std::vector<blink::WebTextSuggestionInfo>& suggestionInfos) { |
| 955 ime_adapter_android_.ShowTextSuggestionMenu(suggestionInfos); |
| 956 } |
| 957 |
953 void RenderWidgetHostViewAndroid::FocusedNodeChanged( | 958 void RenderWidgetHostViewAndroid::FocusedNodeChanged( |
954 bool is_editable_node, | 959 bool is_editable_node, |
955 const gfx::Rect& node_bounds_in_screen) { | 960 const gfx::Rect& node_bounds_in_screen) { |
956 ime_adapter_android_.FocusedNodeChanged(is_editable_node); | 961 ime_adapter_android_.FocusedNodeChanged(is_editable_node); |
957 } | 962 } |
958 | 963 |
959 void RenderWidgetHostViewAndroid::RenderProcessGone( | 964 void RenderWidgetHostViewAndroid::RenderProcessGone( |
960 base::TerminationStatus status, int error_code) { | 965 base::TerminationStatus status, int error_code) { |
961 Destroy(); | 966 Destroy(); |
962 } | 967 } |
(...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2067 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor(); | 2072 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor(); |
2068 if (!compositor) | 2073 if (!compositor) |
2069 return; | 2074 return; |
2070 | 2075 |
2071 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>( | 2076 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>( |
2072 overscroll_refresh_handler, compositor, | 2077 overscroll_refresh_handler, compositor, |
2073 ui::GetScaleFactorForNativeView(GetNativeView())); | 2078 ui::GetScaleFactorForNativeView(GetNativeView())); |
2074 } | 2079 } |
2075 | 2080 |
2076 } // namespace content | 2081 } // namespace content |
OLD | NEW |