Chromium Code Reviews| 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 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 Loading... | |
| 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 wasCustonViewShownCalled() { | |
|
benm (inactive)
2014/07/31 14:39:23
nit: s/Custon/Custom
Ignacio Solla
2014/08/04 09:51:32
Done.
| |
| 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 } |
| OLD | NEW |