OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 package com.android.webview.chromium; | |
6 | |
7 import android.view.ActionMode; | |
8 | |
9 import org.chromium.content.browser.WebActionMode; | |
10 | |
11 /** | |
12 * An extension for WebActionMode that supports floating ActionModes. | |
13 */ | |
14 public class FloatingWebActionMode extends WebActionMode { | |
15 public FloatingWebActionMode(ActionMode actionMode) { | |
16 super(actionMode); | |
17 assert actionMode.getType() == ActionMode.TYPE_FLOATING; | |
18 } | |
19 | |
20 @Override | |
21 public void invalidateContentRect() { | |
22 mActionMode.invalidateContentRect(); | |
23 } | |
24 } | |
OLD | NEW |