| Index: content/browser/renderer_host/render_widget_host_view_android.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
|
| index 04a1821105dcfaec055b91af21e147935cc6b064..cdc7573ca06964d82eff692cd24ba4e676e6155d 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_android.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_view_android.cc
|
| @@ -51,6 +51,7 @@
|
| #include "content/browser/renderer_host/render_process_host_impl.h"
|
| #include "content/browser/renderer_host/render_view_host_impl.h"
|
| #include "content/browser/renderer_host/render_widget_host_impl.h"
|
| +#include "content/browser/renderer_host/ui_touch_selection_helper.h"
|
| #include "content/common/gpu/client/gl_helper.h"
|
| #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
|
| #include "content/common/gpu/gpu_messages.h"
|
| @@ -290,32 +291,6 @@ ui::GestureProvider::Config CreateGestureProviderConfig() {
|
| return config;
|
| }
|
|
|
| -ui::SelectionBound::Type ConvertSelectionBoundType(
|
| - cc::SelectionBoundType type) {
|
| - switch (type) {
|
| - case cc::SELECTION_BOUND_LEFT:
|
| - return ui::SelectionBound::LEFT;
|
| - case cc::SELECTION_BOUND_RIGHT:
|
| - return ui::SelectionBound::RIGHT;
|
| - case cc::SELECTION_BOUND_CENTER:
|
| - return ui::SelectionBound::CENTER;
|
| - case cc::SELECTION_BOUND_EMPTY:
|
| - return ui::SelectionBound::EMPTY;
|
| - }
|
| - NOTREACHED() << "Unknown selection bound type";
|
| - return ui::SelectionBound::EMPTY;
|
| -}
|
| -
|
| -ui::SelectionBound ConvertSelectionBound(
|
| - const cc::ViewportSelectionBound& bound) {
|
| - ui::SelectionBound ui_bound;
|
| - ui_bound.set_type(ConvertSelectionBoundType(bound.type));
|
| - ui_bound.set_visible(bound.visible);
|
| - if (ui_bound.type() != ui::SelectionBound::EMPTY)
|
| - ui_bound.SetEdge(bound.edge_top, bound.edge_bottom);
|
| - return ui_bound;
|
| -}
|
| -
|
| } // anonymous namespace
|
|
|
| ReadbackRequest::ReadbackRequest(float scale,
|
| @@ -1352,7 +1327,7 @@ void RenderWidgetHostViewAndroid::OnFrameMetadataUpdated(
|
| overscroll_controller_->OnFrameMetadataUpdated(frame_metadata);
|
|
|
| if (selection_controller_) {
|
| - selection_controller_->OnSelectionBoundsChanged(
|
| + selection_controller_->OnSelectionBoundsUpdated(
|
| ConvertSelectionBound(frame_metadata.selection_start),
|
| ConvertSelectionBound(frame_metadata.selection_end));
|
| }
|
| @@ -1672,7 +1647,7 @@ void RenderWidgetHostViewAndroid::OnShowingPastePopup(
|
| selection_controller_->HideAndDisallowShowingAutomatically();
|
| selection_controller_->OnSelectionEditable(true);
|
| selection_controller_->OnSelectionEmpty(true);
|
| - selection_controller_->OnSelectionBoundsChanged(insertion_bound,
|
| + selection_controller_->OnSelectionBoundsUpdated(insertion_bound,
|
| insertion_bound);
|
| selection_controller_->AllowShowingFromCurrentSelection();
|
| }
|
|
|