| 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 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" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 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(const PP_Point* location, |
| 38 int32_t* selected_id_out, | 38 int32_t* selected_id_out, |
| 39 PP_CompletionCallback callback) OVERRIDE; | 39 ::ppapi::ApiCallbackType callback) OVERRIDE; |
| 40 | 40 |
| 41 // Called to complete |Show()|. | 41 // Called to complete |Show()|. |
| 42 WEBKIT_PLUGINS_EXPORT void CompleteShow(int32_t result, unsigned action); | 42 WEBKIT_PLUGINS_EXPORT void CompleteShow(int32_t result, unsigned action); |
| 43 | 43 |
| 44 typedef std::vector<WebMenuItem> MenuData; | 44 typedef std::vector<WebMenuItem> MenuData; |
| 45 const MenuData& menu_data() const { return menu_data_; } | 45 const MenuData& menu_data() const { return menu_data_; } |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 explicit PPB_Flash_Menu_Impl(PP_Instance instance); | 48 explicit PPB_Flash_Menu_Impl(PP_Instance instance); |
| 49 | 49 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 62 // Output buffers to be filled in when the callback is completed successfully. | 62 // Output buffers to be filled in when the callback is completed successfully. |
| 63 int32_t* selected_id_out_; | 63 int32_t* selected_id_out_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Menu_Impl); | 65 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Menu_Impl); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace ppapi | 68 } // namespace ppapi |
| 69 } // namespace webkit | 69 } // namespace webkit |
| 70 | 70 |
| 71 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_MENU_IMPL_H_ | 71 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_MENU_IMPL_H_ |
| OLD | NEW |