OLD | NEW |
| (Empty) |
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>PPB_Find_Dev</code> interface. | |
8 */ | |
9 | |
10 [generate_thunk] | |
11 | |
12 label Chrome { | |
13 M14 = 0.3 | |
14 }; | |
15 | |
16 // TODO(raymes): Make PPP/PPB_Find_Dev a private interface. It's only used by | |
17 // PDF currently and it's restrictive in the way it can be used. | |
18 interface PPB_Find_Dev { | |
19 /** | |
20 * Sets the instance of this plugin as the mechanism that will be used to | |
21 * handle find requests in the renderer. This will only succeed if the plugin | |
22 * is embedded within the content of the top level frame. Note that this will | |
23 * result in the renderer handing over all responsibility for doing find to | |
24 * the plugin and content from the rest of the page will not be searched. | |
25 * | |
26 * | |
27 * In the case that the plugin is loaded directly as the top level document, | |
28 * this function does not need to be called. In that case the plugin is | |
29 * assumed to handle find requests. | |
30 * | |
31 * There can only be one plugin which handles find requests. If a plugin calls | |
32 * this while an existing plugin is registered, the existing plugin will be | |
33 * de-registered and will no longer receive any requests. | |
34 */ | |
35 void SetPluginToHandleFindRequests( | |
36 [in] PP_Instance instance); | |
37 | |
38 /** | |
39 * Updates the number of find results for the current search term. If | |
40 * there are no matches 0 should be passed in. Only when the plugin has | |
41 * finished searching should it pass in the final count with final_result set | |
42 * to PP_TRUE. | |
43 */ | |
44 void NumberOfFindResultsChanged( | |
45 [in] PP_Instance instance, | |
46 [in] int32_t total, | |
47 [in] PP_Bool final_result); | |
48 | |
49 /** | |
50 * Updates the index of the currently selected search item. | |
51 */ | |
52 void SelectedFindResultChanged( | |
53 [in] PP_Instance instance, | |
54 [in] int32_t index); | |
55 }; | |
56 | |
OLD | NEW |