IGeckoEditableChild.aidl (1719B)
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 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 package org.mozilla.gecko; 6 7 import org.mozilla.gecko.IGeckoEditableParent; 8 9 import android.view.KeyEvent; 10 11 // Interface for GeckoEditable calls from parent to child 12 interface IGeckoEditableChild { 13 // Transfer this child to a new parent. 14 void transferParent(in IGeckoEditableParent parent); 15 16 // Process a key event. 17 void onKeyEvent(int action, int keyCode, int scanCode, int metaState, 18 int keyPressMetaState, long time, int domPrintableKeyValue, 19 int repeatCount, int flags, boolean isSynthesizedImeKey, 20 boolean waitingReply, in KeyEvent event); 21 22 // Request a callback to parent after performing any pending operations. 23 void onImeSynchronize(); 24 25 // Replace part of current text. 26 void onImeReplaceText(int start, int end, String text); 27 28 // Store a composition range. 29 void onImeAddCompositionRange(int start, int end, int rangeType, int rangeStyles, 30 int rangeLineStyle, boolean rangeBoldLine, 31 int rangeForeColor, int rangeBackColor, int rangeLineColor); 32 33 // Change to a new composition using previously added ranges. 34 void onImeUpdateComposition(int start, int end, int flags); 35 36 // Request cursor updates from the child. 37 void onImeRequestCursorUpdates(int requestMode); 38 39 // Commit current composition. 40 void onImeRequestCommit(); 41 42 // Insert requested image. 43 void onImeInsertImage(in byte[] data, in String mimeType); 44 }