| 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 return web_contents_->GetBrowserContext()->IsOffTheRecord(); | 375 return web_contents_->GetBrowserContext()->IsOffTheRecord(); |
| 376 } | 376 } |
| 377 | 377 |
| 378 void WebContentsAndroid::ResumeLoadingCreatedWebContents( | 378 void WebContentsAndroid::ResumeLoadingCreatedWebContents( |
| 379 JNIEnv* env, | 379 JNIEnv* env, |
| 380 const JavaParamRef<jobject>& obj) { | 380 const JavaParamRef<jobject>& obj) { |
| 381 web_contents_->ResumeLoadingCreatedWebContents(); | 381 web_contents_->ResumeLoadingCreatedWebContents(); |
| 382 } | 382 } |
| 383 | 383 |
| 384 void WebContentsAndroid::OnHide(JNIEnv* env, const JavaParamRef<jobject>& obj) { | 384 void WebContentsAndroid::OnHide(JNIEnv* env, const JavaParamRef<jobject>& obj) { |
| 385 web_contents_->WasHidden(); | 385 static_cast<WebContentsImpl*>(web_contents_)->WasHidden(); |
| 386 } | 386 } |
| 387 | 387 |
| 388 void WebContentsAndroid::OnShow(JNIEnv* env, const JavaParamRef<jobject>& obj) { | 388 void WebContentsAndroid::OnShow(JNIEnv* env, const JavaParamRef<jobject>& obj) { |
| 389 web_contents_->WasShown(); | 389 static_cast<WebContentsImpl*>(web_contents_)->WasShown(); |
| 390 } | 390 } |
| 391 | 391 |
| 392 void WebContentsAndroid::SuspendAllMediaPlayers( | 392 void WebContentsAndroid::SuspendAllMediaPlayers( |
| 393 JNIEnv* env, | 393 JNIEnv* env, |
| 394 const JavaParamRef<jobject>& jobj) { | 394 const JavaParamRef<jobject>& jobj) { |
| 395 MediaWebContentsObserverAndroid::FromWebContents(web_contents_) | 395 MediaWebContentsObserverAndroid::FromWebContents(web_contents_) |
| 396 ->SuspendAllMediaPlayers(); | 396 ->SuspendAllMediaPlayers(); |
| 397 } | 397 } |
| 398 | 398 |
| 399 void WebContentsAndroid::SetAudioMuted(JNIEnv* env, | 399 void WebContentsAndroid::SetAudioMuted(JNIEnv* env, |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 if (response == READBACK_SUCCESS) | 692 if (response == READBACK_SUCCESS) |
| 693 java_bitmap = gfx::ConvertToJavaBitmap(&bitmap); | 693 java_bitmap = gfx::ConvertToJavaBitmap(&bitmap); |
| 694 Java_WebContentsImpl_onGetContentBitmapFinished(env, | 694 Java_WebContentsImpl_onGetContentBitmapFinished(env, |
| 695 obj->obj(), | 695 obj->obj(), |
| 696 callback->obj(), | 696 callback->obj(), |
| 697 java_bitmap.obj(), | 697 java_bitmap.obj(), |
| 698 response); | 698 response); |
| 699 } | 699 } |
| 700 | 700 |
| 701 } // namespace content | 701 } // namespace content |
| OLD | NEW |