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 // TODO(viettrungluu): This (and the .cc file) contain C++ wrappers for some | |
6 // things in ppapi/c/private/ppb_flash_menu.h. This is currently not used in (or | |
7 // even compiled with) Chromium. | |
8 | |
9 #ifndef PPAPI_CPP_PRIVATE_FLASH_MENU_H_ | |
10 #define PPAPI_CPP_PRIVATE_FLASH_MENU_H_ | |
11 | |
12 #include "ppapi/c/private/ppb_flash_menu.h" | |
13 #include "ppapi/cpp/resource.h" | |
14 | |
15 namespace pp { | |
16 | |
17 class CompletionCallback; | |
18 class Instance; | |
19 class Point; | |
20 | |
21 namespace flash { | |
22 | |
23 class Menu : public Resource { | |
brettw
2011/01/31 18:19:49
Is it really necessary to have C++ wrappers for th
viettrungluu
2011/01/31 19:01:41
It makes the Flapper-side code nicer (e.g., no nee
| |
24 public: | |
25 // TODO(viettrungluu): Write a proper C++ wrapper of |PP_Flash_Menu|. | |
26 Menu(const Instance& instance, const struct PP_Flash_Menu* menu_data); | |
27 | |
28 int32_t Show(const Point& location, | |
29 int32_t* selected_id, | |
30 const CompletionCallback& cc); | |
31 }; | |
32 | |
33 } // namespace flash | |
34 } // namespace pp | |
35 | |
36 #endif // PPAPI_CPP_PRIVATE_FLASH_H_ | |
OLD | NEW |