Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: ppapi/c/dev/ppp_find_dev.h

Issue 4310002: Make PPAPI headers compile with C compilers (gcc on Linux & Mac and MSVS on W... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/dev/ppp_class_deprecated.h ('k') | ppapi/c/dev/ppp_printing_dev.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef PPAPI_C_DEV_PPP_FIND_DEV_H_ 5 #ifndef PPAPI_C_DEV_PPP_FIND_DEV_H_
6 #define PPAPI_C_DEV_PPP_FIND_DEV_H_ 6 #define PPAPI_C_DEV_PPP_FIND_DEV_H_
7 7
8 #include "ppapi/c/pp_bool.h"
8 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
9 10
10 #define PPP_FIND_DEV_INTERFACE "PPP_Find(Dev);0.1" 11 #define PPP_FIND_DEV_INTERFACE "PPP_Find(Dev);0.2"
11 12
12 struct PPP_Find_Dev { 13 struct PPP_Find_Dev {
13 // Finds the given UTF-8 text starting at the current selection. The number of 14 // Finds the given UTF-8 text starting at the current selection. The number of
14 // results will be updated asynchronously via NumberOfFindResultsChanged in 15 // results will be updated asynchronously via NumberOfFindResultsChanged in
15 // PPB_Find. Note that multiple StartFind calls can happen before StopFind is 16 // PPB_Find. Note that multiple StartFind calls can happen before StopFind is
16 // called in the case of the search term changing. 17 // called in the case of the search term changing.
17 // 18 //
18 // Return false if plugin doesn't support find in page. Consequently, it won't 19 // Return PP_FALSE if the plugin doesn't support find in page. Consequently,
19 // call any callbacks. 20 // it won't call any callbacks.
20 bool (*StartFind)(PP_Instance instance, 21 PP_Bool (*StartFind)(PP_Instance instance,
21 const char* text, 22 const char* text,
22 bool case_sensitive); 23 PP_Bool case_sensitive);
23 24
24 // Go to the next/previous result. 25 // Go to the next/previous result.
25 void (*SelectFindResult)(PP_Instance instance, 26 void (*SelectFindResult)(PP_Instance instance,
26 bool forward); 27 PP_Bool forward);
27 28
28 // Tells the plugin that the find operation has stopped, so it should clear 29 // Tells the plugin that the find operation has stopped, so it should clear
29 // any highlighting. 30 // any highlighting.
30 void (*StopFind)(PP_Instance instance); 31 void (*StopFind)(PP_Instance instance);
31 }; 32 };
32 33
33 #endif // PPAPI_C_DEV_PPP_FIND_DEV_H_ 34 #endif // PPAPI_C_DEV_PPP_FIND_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppp_class_deprecated.h ('k') | ppapi/c/dev/ppp_printing_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698