OLD | NEW |
1 // Copyright (c) 2012 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 #include "ppapi/proxy/flash_clipboard_resource.h" | 5 #include "ppapi/proxy/flash_clipboard_resource.h" |
6 | 6 |
7 #include "ipc/ipc_message.h" | 7 #include "ipc/ipc_message.h" |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/proxy/ppapi_messages.h" | 9 #include "ppapi/proxy/ppapi_messages.h" |
10 #include "ppapi/shared_impl/ppapi_globals.h" | 10 #include "ppapi/shared_impl/ppapi_globals.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 Post(BROWSER, | 145 Post(BROWSER, |
146 PpapiHostMsg_FlashClipboard_WriteData( | 146 PpapiHostMsg_FlashClipboard_WriteData( |
147 static_cast<uint32_t>(clipboard_type), | 147 static_cast<uint32_t>(clipboard_type), |
148 formats_vector, | 148 formats_vector, |
149 data_items_vector)); | 149 data_items_vector)); |
150 | 150 |
151 // Assume success, since it allows us to avoid a sync IPC. | 151 // Assume success, since it allows us to avoid a sync IPC. |
152 return PP_OK; | 152 return PP_OK; |
153 } | 153 } |
154 | 154 |
| 155 PP_Bool FlashClipboardResource::GetSequenceNumber( |
| 156 PP_Instance instance, |
| 157 PP_Flash_Clipboard_Type clipboard_type, |
| 158 uint64_t* sequence_number) { |
| 159 int32_t result = |
| 160 SyncCall<PpapiPluginMsg_FlashClipboard_GetSequenceNumberReply>( |
| 161 BROWSER, |
| 162 PpapiHostMsg_FlashClipboard_GetSequenceNumber(clipboard_type), |
| 163 sequence_number); |
| 164 return PP_FromBool(result == PP_OK); |
| 165 } |
| 166 |
155 } // namespace proxy | 167 } // namespace proxy |
156 } // namespace ppapi | 168 } // namespace ppapi |
OLD | NEW |