| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.content.browser; | 5 package org.chromium.content.browser; |
| 6 | 6 |
| 7 import android.content.ClipData; | 7 import android.content.ClipData; |
| 8 import android.content.ClipboardManager; | 8 import android.content.ClipboardManager; |
| 9 import android.content.Context; | 9 import android.content.Context; |
| 10 import android.content.Intent; | 10 import android.content.Intent; |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 (ClipboardManager) getActivity().getSystemService( | 637 (ClipboardManager) getActivity().getSystemService( |
| 638 Context.CLIPBOARD_SERVICE); | 638 Context.CLIPBOARD_SERVICE); |
| 639 ClipData clip = ClipData.newPlainText("test", string); | 639 ClipData clip = ClipData.newPlainText("test", string); |
| 640 clipboardManager.setPrimaryClip(clip); | 640 clipboardManager.setPrimaryClip(clip); |
| 641 } | 641 } |
| 642 | 642 |
| 643 private void assertWaitForPastePopupStatus(final boolean show) throws Interr
uptedException { | 643 private void assertWaitForPastePopupStatus(final boolean show) throws Interr
uptedException { |
| 644 assertTrue(CriteriaHelper.pollForUIThreadCriteria(new Criteria() { | 644 assertTrue(CriteriaHelper.pollForUIThreadCriteria(new Criteria() { |
| 645 @Override | 645 @Override |
| 646 public boolean isSatisfied() { | 646 public boolean isSatisfied() { |
| 647 return show == mContentViewCore.getPastePopupForTest().isShowing
(); | 647 return show == mContentViewCore.isPastePopupShowing(); |
| 648 } | 648 } |
| 649 })); | 649 })); |
| 650 } | 650 } |
| 651 } | 651 } |
| OLD | NEW |