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 11 matching lines...) Expand all Loading... |
22 namespace ppapi { | 22 namespace ppapi { |
23 | 23 |
24 class PPB_Flash_Menu_Impl : public Resource, | 24 class PPB_Flash_Menu_Impl : public Resource, |
25 public ::ppapi::thunk::PPB_Flash_Menu_API { | 25 public ::ppapi::thunk::PPB_Flash_Menu_API { |
26 public: | 26 public: |
27 virtual ~PPB_Flash_Menu_Impl(); | 27 virtual ~PPB_Flash_Menu_Impl(); |
28 | 28 |
29 static PP_Resource Create(PluginInstance* instance, | 29 static PP_Resource Create(PluginInstance* instance, |
30 const PP_Flash_Menu* menu_data); | 30 const PP_Flash_Menu* menu_data); |
31 | 31 |
32 // ResourceObjectBase. | 32 // Resource. |
33 virtual ::ppapi::thunk::PPB_Flash_Menu_API* AsPPB_Flash_Menu_API() OVERRIDE; | 33 virtual ::ppapi::thunk::PPB_Flash_Menu_API* AsPPB_Flash_Menu_API() OVERRIDE; |
34 | 34 |
35 // PPB_Flash_Menu implementation. | 35 // PPB_Flash_Menu implementation. |
36 virtual int32_t Show(const PP_Point* location, | 36 virtual int32_t Show(const PP_Point* location, |
37 int32_t* selected_id_out, | 37 int32_t* selected_id_out, |
38 PP_CompletionCallback callback) OVERRIDE; | 38 PP_CompletionCallback callback) OVERRIDE; |
39 | 39 |
40 // Called to complete |Show()|. | 40 // Called to complete |Show()|. |
41 void CompleteShow(int32_t result, unsigned action); | 41 void CompleteShow(int32_t result, unsigned action); |
42 | 42 |
(...skipping 18 matching lines...) Expand all Loading... |
61 // Output buffers to be filled in when the callback is completed successfully. | 61 // Output buffers to be filled in when the callback is completed successfully. |
62 int32_t* selected_id_out_; | 62 int32_t* selected_id_out_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Menu_Impl); | 64 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Menu_Impl); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace ppapi | 67 } // namespace ppapi |
68 } // namespace webkit | 68 } // namespace webkit |
69 | 69 |
70 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_MENU_IMPL_H_ | 70 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_MENU_IMPL_H_ |
OLD | NEW |