1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 package org.mozilla.gecko.widget; 6 7 import android.support.v7.view.ActionMode; 8 9 /* Presenters handle the actual showing/hiding of the action mode UI in the app. Its their 10 * responsibility to create an action mode, and assign it Callbacks*/ 11 12 public interface ActionModePresenter { 13 /* Called when an action mode should be shown */ startActionMode(final ActionMode.Callback callback)14 void startActionMode(final ActionMode.Callback callback); 15 16 /* Called when whatever action mode is showing should be hidden */ endActionMode()17 void endActionMode(); 18 } 19