OLD | NEW |
(Empty) | |
| 1 // Copyright 2012 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 org.chromium.content.browser; |
| 6 |
| 7 /** |
| 8 * Main callback class used by ContentView. |
| 9 * |
| 10 * This contains the superset of callbacks required to implement the browser UI
and the callbacks |
| 11 * required to implement the WebView API. |
| 12 * The memory and reference ownership of this class is unusual - see the .cc fi
le and ContentView |
| 13 * for more details. |
| 14 * |
| 15 * WARNING: ConteViewClient is going away. Do not add new stuff in this class. |
| 16 */ |
| 17 public class ContentViewClient { |
| 18 /** |
| 19 * Called when an ImeEvent is sent to the page. Can be used to know when som
e text is entered |
| 20 * in a page. |
| 21 */ |
| 22 public void onImeEvent() {} |
| 23 |
| 24 /** |
| 25 * Notified when the editability of the focused node changes. |
| 26 * |
| 27 * @param editable Whether the focused node is editable. |
| 28 */ |
| 29 public void onFocusedNodeEditabilityChanged(boolean editable) {} |
| 30 |
| 31 /** |
| 32 * Returns the bottom system window inset in pixels. The system window inset
represents the area |
| 33 * of a full-screen window that is partially or fully obscured by the status
bar, navigation |
| 34 * bar, IME or other system windows. |
| 35 * @return The bottom system window inset. |
| 36 */ |
| 37 public int getSystemWindowInsetBottom() { |
| 38 return 0; |
| 39 } |
| 40 } |
OLD | NEW |