1/* Copyright 2014 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
6label Chrome {
7  M14 = 0.3
8};
9
10interface PPP_Find_Private {
11  /**
12   * Finds the given UTF-8 text starting at the current selection. The number of
13   * results will be updated asynchronously via NumberOfFindResultsChanged in
14   * PPB_Find. Note that multiple StartFind calls can happen before StopFind is
15   * called in the case of the search term changing.
16   *
17   * Return PP_FALSE if the plugin doesn't support find in page. Consequently,
18   * it won't call any callbacks.
19   */
20  PP_Bool StartFind([in] PP_Instance instance,
21                    [in] str_t text,
22                    [in] PP_Bool case_sensitive);
23
24  /**
25   * Go to the next/previous result.
26   */
27  void SelectFindResult([in] PP_Instance instance,
28                        [in] PP_Bool forward);
29
30  /**
31   * Tells the plugin that the find operation has stopped, so it should clear
32   * any highlighting.
33   */
34  void StopFind([in] PP_Instance instance);
35};
36