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

Side by Side Diff: android_webview/javatests/src/org/chromium/android_webview/test/FullScreenVideoTestAwContentsClient.java

Issue 425343002: [Android WebView] API to enable fullscreen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update AwContentsClientGetVideoLoadingProgressViewTest Created 6 years, 4 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 | Annotate | Revision Log
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 package org.chromium.android_webview.test; 5 package org.chromium.android_webview.test;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.view.Gravity; 8 import android.view.Gravity;
9 import android.view.View; 9 import android.view.View;
10 import android.view.ViewGroup; 10 import android.view.ViewGroup;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 59
60 public WebChromeClient.CustomViewCallback getExitCallback() { 60 public WebChromeClient.CustomViewCallback getExitCallback() {
61 return mExitCallback; 61 return mExitCallback;
62 } 62 }
63 63
64 public View getCustomView() { 64 public View getCustomView() {
65 return mCustomView; 65 return mCustomView;
66 } 66 }
67 67
68 public boolean wasCustomViewShownCalled() {
69 return mOnShowCustomViewCallbackHelper.getCallCount() > 0;
70 }
71
68 public void waitForCustomViewShown() throws TimeoutException, InterruptedExc eption { 72 public void waitForCustomViewShown() throws TimeoutException, InterruptedExc eption {
69 mOnShowCustomViewCallbackHelper.waitForCallback(0, 1, WAITING_SECONDS, T imeUnit.SECONDS); 73 mOnShowCustomViewCallbackHelper.waitForCallback(0, 1, WAITING_SECONDS, T imeUnit.SECONDS);
70 } 74 }
71 75
72 public void waitForCustomViewHidden() throws InterruptedException, TimeoutEx ception { 76 public void waitForCustomViewHidden() throws InterruptedException, TimeoutEx ception {
73 mOnHideCustomViewCallbackHelper.waitForCallback(0, 1, WAITING_SECONDS, T imeUnit.SECONDS); 77 mOnHideCustomViewCallbackHelper.waitForCallback(0, 1, WAITING_SECONDS, T imeUnit.SECONDS);
74 } 78 }
75 } 79 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698