| 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 #include "ppapi/proxy/ppb_flash_menu_proxy.h" | 5 #include "ppapi/proxy/ppb_flash_menu_proxy.h" |
| 6 | 6 |
| 7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
| 8 #include "ppapi/c/private/ppb_flash_menu.h" | 8 #include "ppapi/c/private/ppb_flash_menu.h" |
| 9 #include "ppapi/proxy/enter_proxy.h" | 9 #include "ppapi/proxy/enter_proxy.h" |
| 10 #include "ppapi/proxy/ppapi_messages.h" | 10 #include "ppapi/proxy/ppapi_messages.h" |
| 11 #include "ppapi/thunk/enter.h" | 11 #include "ppapi/thunk/enter.h" |
| 12 #include "ppapi/thunk/ppb_flash_menu_api.h" | 12 #include "ppapi/thunk/ppb_flash_menu_api.h" |
| 13 #include "ppapi/thunk/resource_creation_api.h" | 13 #include "ppapi/thunk/resource_creation_api.h" |
| 14 #include "ppapi/thunk/thunk.h" | 14 #include "ppapi/thunk/thunk.h" |
| 15 | 15 |
| 16 using ppapi::HostResource; |
| 16 using ppapi::thunk::EnterFunctionNoLock; | 17 using ppapi::thunk::EnterFunctionNoLock; |
| 17 using ppapi::thunk::PPB_Flash_Menu_API; | 18 using ppapi::thunk::PPB_Flash_Menu_API; |
| 18 using ppapi::thunk::ResourceCreationAPI; | 19 using ppapi::thunk::ResourceCreationAPI; |
| 19 | 20 |
| 20 namespace pp { | 21 namespace pp { |
| 21 namespace proxy { | 22 namespace proxy { |
| 22 | 23 |
| 23 class FlashMenu : public PPB_Flash_Menu_API, public PluginResource { | 24 class FlashMenu : public PPB_Flash_Menu_API, public PluginResource { |
| 24 public: | 25 public: |
| 25 explicit FlashMenu(const HostResource& resource); | 26 explicit FlashMenu(const HostResource& resource); |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 dispatcher()->Send(new PpapiMsg_PPBFlashMenu_ShowACK( | 188 dispatcher()->Send(new PpapiMsg_PPBFlashMenu_ShowACK( |
| 188 INTERFACE_ID_PPB_FLASH_MENU, | 189 INTERFACE_ID_PPB_FLASH_MENU, |
| 189 request->menu, | 190 request->menu, |
| 190 request->selected_id, | 191 request->selected_id, |
| 191 result)); | 192 result)); |
| 192 delete request; | 193 delete request; |
| 193 } | 194 } |
| 194 | 195 |
| 195 } // namespace proxy | 196 } // namespace proxy |
| 196 } // namespace pp | 197 } // namespace pp |
| OLD | NEW |