1/* Copyright (c) 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
6/**
7 * This file defines the <code>PPP_TextInput_Dev</code> interface.
8 */
9
10label Chrome {
11  M19 = 0.1
12};
13
14/**
15 * <code>PPP_TextInput_Dev</code> is a set of function pointers that the
16 * plugin has to implement to provide hints for text input system (IME).
17 */
18interface PPP_TextInput_Dev {
19  /**
20   * Requests the plugin to send back the text around the current caret or
21   * selection by <code>PPB_TextInput_Dev::UpdateSurroundingText</code>.
22   * It is recommended to include the <code>desired_number_of_characters</code>
23   * characters before and after the selection, but not mandatory.
24   */
25  void RequestSurroundingText([in] PP_Instance instance,
26                              [in] uint32_t desired_number_of_characters);
27};
28