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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/SelectActionMode.java

Issue 1292923004: Refactor chrome's action mode logics and namings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make webview to compile 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 side-by-side diff with in-line comments
Download patch
Index: content/public/android/java/src/org/chromium/content/browser/SelectActionMode.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/SelectActionMode.java b/content/public/android/java/src/org/chromium/content/browser/SelectActionMode.java
deleted file mode 100644
index 2fd80ed18fd923d9e6b213a4714ac55db66609d5..0000000000000000000000000000000000000000
--- a/content/public/android/java/src/org/chromium/content/browser/SelectActionMode.java
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.content.browser;
-
-import android.view.ActionMode;
-
-import org.chromium.base.Log;
-
-/**
- * An ActionMode for in-page selection. This class wraps an ActionMode created
- * by the associated View, providing modified interaction with that ActionMode.
- */
-public class SelectActionMode {
- private static final String TAG = "cr.SelectActionMode";
-
- protected final ActionMode mActionMode;
-
- /**
- * Constructs a SelectActionMode instance wrapping a concrete ActionMode.
- * @param actionMode the wrapped ActionMode.
- */
- public SelectActionMode(ActionMode actionMode) {
- assert actionMode != null;
- mActionMode = actionMode;
- }
-
- /**
- * @see ActionMode#finish()
- */
- public void finish() {
- mActionMode.finish();
- }
-
- /**
- * @see ActionMode#invalidate()
- */
- public void invalidate() {
- // Try/catch necessary for framework bug, crbug.com/446717.
- try {
- mActionMode.invalidate();
- } catch (NullPointerException e) {
- Log.w(TAG, "Ignoring NPE from ActionMode.invalidate() as workaround for L", e);
- }
- }
-
- /**
- * @see ActionMode#invalidateContentRect()
- */
- public void invalidateContentRect() {}
-}

Powered by Google App Engine
This is Rietveld 408576698