| OLD | NEW |
| 1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 label Chrome { | 6 label Chrome { |
| 7 M14 = 0.3 | 7 M14 = 0.3 |
| 8 }; | 8 }; |
| 9 | 9 |
| 10 /** | 10 interface PPP_Find_Private { |
| 11 * TODO(raymes): Make PPP/PPB_Find_Dev a private interface. | |
| 12 */ | |
| 13 interface PPP_Find_Dev { | |
| 14 /** | 11 /** |
| 15 * Finds the given UTF-8 text starting at the current selection. The number of | 12 * Finds the given UTF-8 text starting at the current selection. The number of |
| 16 * results will be updated asynchronously via NumberOfFindResultsChanged in | 13 * results will be updated asynchronously via NumberOfFindResultsChanged in |
| 17 * PPB_Find. Note that multiple StartFind calls can happen before StopFind is | 14 * PPB_Find. Note that multiple StartFind calls can happen before StopFind is |
| 18 * called in the case of the search term changing. | 15 * called in the case of the search term changing. |
| 19 * | 16 * |
| 20 * Return PP_FALSE if the plugin doesn't support find in page. Consequently, | 17 * Return PP_FALSE if the plugin doesn't support find in page. Consequently, |
| 21 * it won't call any callbacks. | 18 * it won't call any callbacks. |
| 22 */ | 19 */ |
| 23 PP_Bool StartFind([in] PP_Instance instance, | 20 PP_Bool StartFind([in] PP_Instance instance, |
| 24 [in] str_t text, | 21 [in] str_t text, |
| 25 [in] PP_Bool case_sensitive); | 22 [in] PP_Bool case_sensitive); |
| 26 | 23 |
| 27 /** | 24 /** |
| 28 * Go to the next/previous result. | 25 * Go to the next/previous result. |
| 29 */ | 26 */ |
| 30 void SelectFindResult([in] PP_Instance instance, | 27 void SelectFindResult([in] PP_Instance instance, |
| 31 [in] PP_Bool forward); | 28 [in] PP_Bool forward); |
| 32 | 29 |
| 33 /** | 30 /** |
| 34 * Tells the plugin that the find operation has stopped, so it should clear | 31 * Tells the plugin that the find operation has stopped, so it should clear |
| 35 * any highlighting. | 32 * any highlighting. |
| 36 */ | 33 */ |
| 37 void StopFind([in] PP_Instance instance); | 34 void StopFind([in] PP_Instance instance); |
| 38 }; | 35 }; |
| OLD | NEW |