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

Unified Diff: ppapi/thunk/ppb_flash_clipboard_thunk.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/thunk/ppb_flash_clipboard_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_flash_clipboard_thunk.cc
diff --git a/ppapi/thunk/ppb_flash_clipboard_thunk.cc b/ppapi/thunk/ppb_flash_clipboard_thunk.cc
index 359d78f203ff098aa43a7fa673596e55a5463c52..95e4ba55c81936e3c4123662cd240ec9cf86b2cd 100644
--- a/ppapi/thunk/ppb_flash_clipboard_thunk.cc
+++ b/ppapi/thunk/ppb_flash_clipboard_thunk.cc
@@ -77,6 +77,16 @@ int32_t WriteData_4_0(PP_Instance instance,
new_formats.get(), data_items);
}
+PP_Bool GetSequenceNumber(PP_Instance instance,
+ PP_Flash_Clipboard_Type clipboard_type,
+ uint64_t* sequence_number) {
+ EnterInstanceAPI<PPB_Flash_Clipboard_API> enter(instance);
+ if (enter.failed())
+ return PP_FALSE;
+ return enter.functions()->GetSequenceNumber(instance, clipboard_type,
+ sequence_number);
+}
+
const PPB_Flash_Clipboard_4_0 g_ppb_flash_clipboard_thunk_4_0 = {
&IsFormatAvailable_4_0,
&ReadData_4_0,
@@ -90,6 +100,14 @@ const PPB_Flash_Clipboard_5_0 g_ppb_flash_clipboard_thunk_5_0 = {
&WriteData
};
+const PPB_Flash_Clipboard_5_1 g_ppb_flash_clipboard_thunk_5_1 = {
+ &RegisterCustomFormat,
+ &IsFormatAvailable,
+ &ReadData,
+ &WriteData,
+ &GetSequenceNumber
+};
+
} // namespace
const PPB_Flash_Clipboard_4_0* GetPPB_Flash_Clipboard_4_0_Thunk() {
@@ -100,5 +118,9 @@ const PPB_Flash_Clipboard_5_0* GetPPB_Flash_Clipboard_5_0_Thunk() {
return &g_ppb_flash_clipboard_thunk_5_0;
}
+const PPB_Flash_Clipboard_5_1* GetPPB_Flash_Clipboard_5_1_Thunk() {
+ return &g_ppb_flash_clipboard_thunk_5_1;
+}
+
} // namespace thunk
} // namespace ppapi
« no previous file with comments | « ppapi/thunk/ppb_flash_clipboard_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698