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

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

Issue 1159113006: [Android] A prototype of the interactive media notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved OnMediaSessionStateChanged to WebContentsImpl Created 5 years, 5 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 "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
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
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_android.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698