ash: Update app list layout:
[chromium-blink-merge.git] / ppapi / thunk / ppb_find_thunk.cc
blob53911e491422c02d75825b1bc8bba4043523f49e
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.
5 #include "ppapi/c/dev/ppb_find_dev.h"
6 #include "ppapi/thunk/thunk.h"
7 #include "ppapi/thunk/enter.h"
9 namespace ppapi {
10 namespace thunk {
12 namespace {
14 void NumberOfFindResultsChanged(PP_Instance instance,
15 int32_t total,
16 PP_Bool final) {
17 EnterInstance enter(instance);
18 if (enter.succeeded())
19 enter.functions()->NumberOfFindResultsChanged(instance, total, final);
22 void SelectedFindResultChanged(PP_Instance instance, int32_t index) {
23 EnterInstance enter(instance);
24 if (enter.succeeded())
25 enter.functions()->SelectedFindResultChanged(instance, index);
28 const PPB_Find_Dev g_ppb_find_thunk = {
29 &NumberOfFindResultsChanged,
30 &SelectedFindResultChanged
33 } // namespace
35 const PPB_Find_Dev_0_3* GetPPB_Find_Dev_0_3_Thunk() {
36 return &g_ppb_find_thunk;
39 } // namespace thunk
40 } // namespace ppapi