Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: ppapi/proxy/flash_clipboard_resource.cc

Issue 136183002: Add GetSequenceNumber function to PPB_Flash_Clipboard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/flash_clipboard_resource.h ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ppapi/proxy/flash_clipboard_resource.h ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698