OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_CPP_PRIVATE_FLASH_MENU_H_ | 5 #ifndef PPAPI_CPP_PRIVATE_FLASH_MENU_H_ |
6 #define PPAPI_CPP_PRIVATE_FLASH_MENU_H_ | 6 #define PPAPI_CPP_PRIVATE_FLASH_MENU_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "ppapi/c/private/ppb_flash_menu.h" | 10 #include "ppapi/c/private/ppb_flash_menu.h" |
9 #include "ppapi/cpp/resource.h" | 11 #include "ppapi/cpp/resource.h" |
10 | 12 |
11 namespace pp { | 13 namespace pp { |
12 | 14 |
13 class CompletionCallback; | 15 class CompletionCallback; |
14 class InstanceHandle; | 16 class InstanceHandle; |
15 class Point; | 17 class Point; |
16 | 18 |
17 namespace flash { | 19 namespace flash { |
18 | 20 |
19 class Menu : public Resource { | 21 class Menu : public Resource { |
20 public: | 22 public: |
21 // TODO(viettrungluu): Write a proper C++ wrapper of |PP_Flash_Menu|. | 23 // TODO(viettrungluu): Write a proper C++ wrapper of |PP_Flash_Menu|. |
22 Menu(const InstanceHandle& instance, const struct PP_Flash_Menu* menu_data); | 24 Menu(const InstanceHandle& instance, const struct PP_Flash_Menu* menu_data); |
23 | 25 |
24 int32_t Show(const Point& location, | 26 int32_t Show(const Point& location, |
25 int32_t* selected_id, | 27 int32_t* selected_id, |
26 const CompletionCallback& cc); | 28 const CompletionCallback& cc); |
27 }; | 29 }; |
28 | 30 |
29 } // namespace flash | 31 } // namespace flash |
30 } // namespace pp | 32 } // namespace pp |
31 | 33 |
32 #endif // PPAPI_CPP_PRIVATE_FLASH_H_ | 34 #endif // PPAPI_CPP_PRIVATE_FLASH_H_ |
OLD | NEW |