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

Side by Side Diff: content/browser/web_contents/web_contents_android.cc

Issue 2785853002: Selection Action mode triggered like a context menu (Closed)
Patch Set: fix rebase Created 3 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/web_contents/web_contents_android.h" 5 #include "content/browser/web_contents/web_contents_android.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 view->DismissTextHandles(); 646 view->DismissTextHandles();
647 } 647 }
648 648
649 void WebContentsAndroid::ShowContextMenuAtTouchHandle( 649 void WebContentsAndroid::ShowContextMenuAtTouchHandle(
650 JNIEnv* env, 650 JNIEnv* env,
651 const base::android::JavaParamRef<jobject>& obj, 651 const base::android::JavaParamRef<jobject>& obj,
652 int x, 652 int x,
653 int y) { 653 int y) {
654 RenderWidgetHostViewAndroid* view = GetRenderWidgetHostViewAndroid(); 654 RenderWidgetHostViewAndroid* view = GetRenderWidgetHostViewAndroid();
655 if (view) 655 if (view)
656 view->ShowContextMenuAtTouchHandle(gfx::Point(x, y)); 656 view->ShowContextMenuAtPoint(gfx::Point(x, y),
657 ui::MENU_SOURCE_TOUCH_HANDLE);
657 } 658 }
658 659
659 void WebContentsAndroid::SetHasPersistentVideo( 660 void WebContentsAndroid::SetHasPersistentVideo(
660 JNIEnv* env, 661 JNIEnv* env,
661 const base::android::JavaParamRef<jobject>& obj, 662 const base::android::JavaParamRef<jobject>& obj,
662 jboolean value) { 663 jboolean value) {
663 web_contents_->SetHasPersistentVideo(value); 664 web_contents_->SetHasPersistentVideo(value);
664 } 665 }
665 666
666 bool WebContentsAndroid::HasActiveEffectivelyFullscreenVideo( 667 bool WebContentsAndroid::HasActiveEffectivelyFullscreenVideo(
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 env, obj, callback, id, http_status_code, jurl, jbitmaps, jsizes); 721 env, obj, callback, id, http_status_code, jurl, jbitmaps, jsizes);
721 } 722 }
722 723
723 void WebContentsAndroid::SetMediaSession( 724 void WebContentsAndroid::SetMediaSession(
724 const ScopedJavaLocalRef<jobject>& j_media_session) { 725 const ScopedJavaLocalRef<jobject>& j_media_session) {
725 JNIEnv* env = base::android::AttachCurrentThread(); 726 JNIEnv* env = base::android::AttachCurrentThread();
726 Java_WebContentsImpl_setMediaSession(env, obj_, j_media_session); 727 Java_WebContentsImpl_setMediaSession(env, obj_, j_media_session);
727 } 728 }
728 729
729 } // namespace content 730 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | content/child/assert_matching_enums.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698