| 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 "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
| 9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 gfx::DeviceDisplayInfo device_info; | 461 gfx::DeviceDisplayInfo device_info; |
| 462 ContentViewCoreImpl* contentViewCore = | 462 ContentViewCoreImpl* contentViewCore = |
| 463 ContentViewCoreImpl::FromWebContents(web_contents_); | 463 ContentViewCoreImpl::FromWebContents(web_contents_); |
| 464 WebContentsImpl::AXTreeSnapshotCallback snapshot_callback = | 464 WebContentsImpl::AXTreeSnapshotCallback snapshot_callback = |
| 465 base::Bind(&AXTreeSnapshotCallback, j_callback, | 465 base::Bind(&AXTreeSnapshotCallback, j_callback, |
| 466 contentViewCore->GetScaleFactor()); | 466 contentViewCore->GetScaleFactor()); |
| 467 static_cast<WebContentsImpl*>(web_contents_)->RequestAXTreeSnapshot( | 467 static_cast<WebContentsImpl*>(web_contents_)->RequestAXTreeSnapshot( |
| 468 snapshot_callback); | 468 snapshot_callback); |
| 469 } | 469 } |
| 470 | 470 |
| 471 void WebContentsAndroid::ResumeMediaSession(JNIEnv* env, jobject obj) { |
| 472 web_contents_->ResumeMediaSession(); |
| 473 } |
| 474 |
| 475 void WebContentsAndroid::SuspendMediaSession(JNIEnv* env, jobject obj) { |
| 476 web_contents_->SuspendMediaSession(); |
| 477 } |
| 478 |
| 471 } // namespace content | 479 } // namespace content |
| OLD | NEW |