OLD | NEW |
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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 } | 639 } |
640 | 640 |
641 void WebContentsAndroid::DismissTextHandles( | 641 void WebContentsAndroid::DismissTextHandles( |
642 JNIEnv* env, | 642 JNIEnv* env, |
643 const base::android::JavaParamRef<jobject>& obj) { | 643 const base::android::JavaParamRef<jobject>& obj) { |
644 RenderWidgetHostViewAndroid* view = GetRenderWidgetHostViewAndroid(); | 644 RenderWidgetHostViewAndroid* view = GetRenderWidgetHostViewAndroid(); |
645 if (view) | 645 if (view) |
646 view->DismissTextHandles(); | 646 view->DismissTextHandles(); |
647 } | 647 } |
648 | 648 |
649 void WebContentsAndroid::ShowContextMenuAtPoint( | 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->ShowContextMenuAtPoint(gfx::Point(x, y)); | 656 view->ShowContextMenuAtTouchHandle(gfx::Point(x, y)); |
657 } | 657 } |
658 | 658 |
659 void WebContentsAndroid::SetHasPersistentVideo( | 659 void WebContentsAndroid::SetHasPersistentVideo( |
660 JNIEnv* env, | 660 JNIEnv* env, |
661 const base::android::JavaParamRef<jobject>& obj, | 661 const base::android::JavaParamRef<jobject>& obj, |
662 jboolean value) { | 662 jboolean value) { |
663 web_contents_->SetHasPersistentVideo(value); | 663 web_contents_->SetHasPersistentVideo(value); |
664 } | 664 } |
665 | 665 |
666 bool WebContentsAndroid::HasActiveEffectivelyFullscreenVideo( | 666 bool WebContentsAndroid::HasActiveEffectivelyFullscreenVideo( |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 env, obj, callback, id, http_status_code, jurl, jbitmaps, jsizes); | 720 env, obj, callback, id, http_status_code, jurl, jbitmaps, jsizes); |
721 } | 721 } |
722 | 722 |
723 void WebContentsAndroid::SetMediaSession( | 723 void WebContentsAndroid::SetMediaSession( |
724 const ScopedJavaLocalRef<jobject>& j_media_session) { | 724 const ScopedJavaLocalRef<jobject>& j_media_session) { |
725 JNIEnv* env = base::android::AttachCurrentThread(); | 725 JNIEnv* env = base::android::AttachCurrentThread(); |
726 Java_WebContentsImpl_setMediaSession(env, obj_, j_media_session); | 726 Java_WebContentsImpl_setMediaSession(env, obj_, j_media_session); |
727 } | 727 } |
728 | 728 |
729 } // namespace content | 729 } // namespace content |
OLD | NEW |