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

Side by Side Diff: ppapi/thunk/ppb_find_thunk.cc

Issue 7006022: Revert 87415 - Convert more interfaces to the new thunk system. This goes up to and including (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 months 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/thunk/ppb_find_api.h ('k') | ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 #include "ppapi/c/dev/ppb_find_dev.h"
6 #include "ppapi/thunk/thunk.h"
7 #include "ppapi/thunk/enter.h"
8 #include "ppapi/thunk/ppb_find_api.h"
9 #include "ppapi/thunk/resource_creation_api.h"
10
11 namespace ppapi {
12 namespace thunk {
13
14 namespace {
15
16 void NumberOfFindResultsChanged(PP_Instance instance,
17 int32_t total,
18 PP_Bool final) {
19 EnterFunction<PPB_Find_FunctionAPI> enter(instance, true);
20 if (enter.succeeded())
21 enter.functions()->NumberOfFindResultsChanged(instance, total, final);
22 }
23
24 void SelectedFindResultChanged(PP_Instance instance, int32_t index) {
25 EnterFunction<PPB_Find_FunctionAPI> enter(instance, true);
26 if (enter.succeeded())
27 enter.functions()->SelectedFindResultChanged(instance, index);
28 }
29
30 const PPB_Find_Dev g_ppb_find_thunk = {
31 &NumberOfFindResultsChanged,
32 &SelectedFindResultChanged
33 };
34
35 } // namespace
36
37 const PPB_Find_Dev* GetPPB_Find_Thunk() {
38 return &g_ppb_find_thunk;
39 }
40
41 } // namespace thunk
42 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_find_api.h ('k') | ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698