OLD | NEW |
(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 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FIND_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FIND_IMPL_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "ppapi/shared_impl/function_group_base.h" |
| 11 #include "ppapi/thunk/ppb_find_api.h" |
| 12 |
| 13 namespace webkit { |
| 14 namespace ppapi { |
| 15 |
| 16 class PluginInstance; |
| 17 |
| 18 // Some of the backend functionality of this class is implemented by the |
| 19 // AudioImpl so it can be shared with the proxy. |
| 20 class PPB_Find_Impl : public ::ppapi::FunctionGroupBase, |
| 21 public ::ppapi::thunk::PPB_Find_FunctionAPI { |
| 22 public: |
| 23 PPB_Find_Impl(PluginInstance* instance); |
| 24 virtual ~PPB_Find_Impl(); |
| 25 |
| 26 // FunctionBase overrides. |
| 27 virtual ::ppapi::thunk::PPB_Find_FunctionAPI* AsPPB_Find_FunctionAPI() |
| 28 OVERRIDE; |
| 29 |
| 30 // PPB_Find_API implementation. |
| 31 virtual void NumberOfFindResultsChanged(PP_Instance instance, |
| 32 int32_t total, |
| 33 PP_Bool final_result) OVERRIDE; |
| 34 virtual void SelectedFindResultChanged(PP_Instance instance, |
| 35 int32_t index) OVERRIDE; |
| 36 |
| 37 private: |
| 38 PluginInstance* instance_; |
| 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(PPB_Find_Impl); |
| 41 }; |
| 42 |
| 43 } // namespace ppapi |
| 44 } // namespace webkit |
| 45 |
| 46 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FIND_IMPL_H_ |
OLD | NEW |