OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 WEBKIT_PLUGINS_PPAPI_PPB_FLASH_MENU_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FLASH_MENU_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FLASH_MENU_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FLASH_MENU_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
(...skipping 15 matching lines...) Expand all Loading... |
27 public: | 27 public: |
28 virtual ~PPB_Flash_Menu_Impl(); | 28 virtual ~PPB_Flash_Menu_Impl(); |
29 | 29 |
30 static PP_Resource Create(PP_Instance instance, | 30 static PP_Resource Create(PP_Instance instance, |
31 const PP_Flash_Menu* menu_data); | 31 const PP_Flash_Menu* menu_data); |
32 | 32 |
33 // Resource. | 33 // Resource. |
34 virtual ::ppapi::thunk::PPB_Flash_Menu_API* AsPPB_Flash_Menu_API() OVERRIDE; | 34 virtual ::ppapi::thunk::PPB_Flash_Menu_API* AsPPB_Flash_Menu_API() OVERRIDE; |
35 | 35 |
36 // PPB_Flash_Menu implementation. | 36 // PPB_Flash_Menu implementation. |
37 virtual int32_t Show(const PP_Point* location, | 37 virtual int32_t Show( |
38 int32_t* selected_id_out, | 38 const PP_Point* location, |
39 PP_CompletionCallback callback) OVERRIDE; | 39 int32_t* selected_id_out, |
| 40 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; |
40 | 41 |
41 // Called to complete |Show()|. | 42 // Called to complete |Show()|. |
42 WEBKIT_PLUGINS_EXPORT void CompleteShow(int32_t result, unsigned action); | 43 WEBKIT_PLUGINS_EXPORT void CompleteShow(int32_t result, unsigned action); |
43 | 44 |
44 typedef std::vector<WebMenuItem> MenuData; | 45 typedef std::vector<WebMenuItem> MenuData; |
45 const MenuData& menu_data() const { return menu_data_; } | 46 const MenuData& menu_data() const { return menu_data_; } |
46 | 47 |
47 private: | 48 private: |
48 explicit PPB_Flash_Menu_Impl(PP_Instance instance); | 49 explicit PPB_Flash_Menu_Impl(PP_Instance instance); |
49 | 50 |
(...skipping 12 matching lines...) Expand all Loading... |
62 // Output buffers to be filled in when the callback is completed successfully. | 63 // Output buffers to be filled in when the callback is completed successfully. |
63 int32_t* selected_id_out_; | 64 int32_t* selected_id_out_; |
64 | 65 |
65 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Menu_Impl); | 66 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Menu_Impl); |
66 }; | 67 }; |
67 | 68 |
68 } // namespace ppapi | 69 } // namespace ppapi |
69 } // namespace webkit | 70 } // namespace webkit |
70 | 71 |
71 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_MENU_IMPL_H_ | 72 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_MENU_IMPL_H_ |
OLD | NEW |