| OLD | NEW |
| 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 Loading... |
| 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 updateMediaControls(boolean isControllable, boolean isPaused) { |
| 109 } |
| 110 |
| 111 public static native void nativeOnMediaControlsPause(WebContents webContents
); |
| 112 public static native void nativeOnMediaControlsResume(WebContents webContent
s); |
| 107 protected static native boolean nativeIsCapturingAudio(WebContents webConten
ts); | 113 protected static native boolean nativeIsCapturingAudio(WebContents webConten
ts); |
| 108 protected static native boolean nativeIsCapturingVideo(WebContents webConten
ts); | 114 protected static native boolean nativeIsCapturingVideo(WebContents webConten
ts); |
| 109 protected static native boolean nativeHasAudibleAudio(WebContents webContent
s); | 115 protected static native boolean nativeHasAudibleAudio(WebContents webContent
s); |
| 110 } | 116 } |
| OLD | NEW |