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

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

Issue 2785853002: Selection Action mode triggered like a context menu (Closed)
Patch Set: Fixing rebase bug Created 3 years, 8 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 1805 matching lines...) Expand 10 before | Expand all | Expand 10 after
1816 } 1816 }
1817 1817
1818 void RenderWidgetHostViewAndroid::MoveCaret(const gfx::Point& point) { 1818 void RenderWidgetHostViewAndroid::MoveCaret(const gfx::Point& point) {
1819 if (host_) 1819 if (host_)
1820 host_->MoveCaret(point); 1820 host_->MoveCaret(point);
1821 } 1821 }
1822 1822
1823 void RenderWidgetHostViewAndroid::ShowContextMenuAtPoint( 1823 void RenderWidgetHostViewAndroid::ShowContextMenuAtPoint(
1824 const gfx::Point& point) { 1824 const gfx::Point& point) {
1825 if (host_) 1825 if (host_)
1826 host_->ShowContextMenuAtPoint(point); 1826 host_->ShowContextMenuAtPoint(point, true);
1827 } 1827 }
1828 1828
1829 void RenderWidgetHostViewAndroid::DismissTextHandles() { 1829 void RenderWidgetHostViewAndroid::DismissTextHandles() {
1830 if (touch_selection_controller_) 1830 if (touch_selection_controller_)
1831 touch_selection_controller_->HideAndDisallowShowingAutomatically(); 1831 touch_selection_controller_->HideAndDisallowShowingAutomatically();
1832 } 1832 }
1833 1833
1834 void RenderWidgetHostViewAndroid::SetTextHandlesTemporarilyHidden(bool hidden) { 1834 void RenderWidgetHostViewAndroid::SetTextHandlesTemporarilyHidden(bool hidden) {
1835 if (touch_selection_controller_) 1835 if (touch_selection_controller_)
1836 touch_selection_controller_->SetTemporarilyHidden(hidden); 1836 touch_selection_controller_->SetTemporarilyHidden(hidden);
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
2191 2191
2192 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor(); 2192 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor();
2193 if (!compositor) 2193 if (!compositor)
2194 return; 2194 return;
2195 2195
2196 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>( 2196 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>(
2197 overscroll_refresh_handler, compositor, view_.GetDipScale()); 2197 overscroll_refresh_handler, compositor, view_.GetDipScale());
2198 } 2198 }
2199 2199
2200 } // namespace content 2200 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698