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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeWebContentsDelegateAndroid.java

Issue 1159113006: [Android] A prototype of the interactive media notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added browser tests Created 5 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 package org.chromium.chrome.browser; 5 package org.chromium.chrome.browser;
6 6
7 import android.graphics.Rect; 7 import android.graphics.Rect;
8 import android.graphics.RectF; 8 import android.graphics.RectF;
9 9
10 import org.chromium.base.CalledByNative; 10 import org.chromium.base.CalledByNative;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 int version, int numRects, RectF activeRect) { 97 int version, int numRects, RectF activeRect) {
98 return new FindMatchRectsDetails(version, numRects, activeRect); 98 return new FindMatchRectsDetails(version, numRects, activeRect);
99 } 99 }
100 100
101 @CalledByNative 101 @CalledByNative
102 private static void setMatchRectByIndex( 102 private static void setMatchRectByIndex(
103 FindMatchRectsDetails findMatchRectsDetails, int index, RectF rect) { 103 FindMatchRectsDetails findMatchRectsDetails, int index, RectF rect) {
104 findMatchRectsDetails.rects[index] = rect; 104 findMatchRectsDetails.rects[index] = rect;
105 } 105 }
106 106
107 @CalledByNative
108 public void showMediaControls(boolean isPaused) {
109 }
110
111 @CalledByNative
112 public void hideMediaControls() {
113 }
114
115 public static native void nativeOnMediaControlsPause(WebContents webContents );
116 public static native void nativeOnMediaControlsResume(WebContents webContent s);
107 protected static native boolean nativeIsCapturingAudio(WebContents webConten ts); 117 protected static native boolean nativeIsCapturingAudio(WebContents webConten ts);
108 protected static native boolean nativeIsCapturingVideo(WebContents webConten ts); 118 protected static native boolean nativeIsCapturingVideo(WebContents webConten ts);
109 protected static native boolean nativeHasAudibleAudio(WebContents webContent s); 119 protected static native boolean nativeHasAudibleAudio(WebContents webContent s);
110 } 120 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698