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

Side by Side Diff: content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java

Issue 1242613002: [Android] Supporting floating select ActionModes for web content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698