| 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 "webkit/plugins/ppapi/ppb_flash_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_flash_impl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 // No current settings are supported in-process. | 247 // No current settings are supported in-process. |
| 248 return -1; | 248 return -1; |
| 249 } | 249 } |
| 250 | 250 |
| 251 PP_Var PPB_Flash_Impl::GetSetting(PP_Instance instance, | 251 PP_Var PPB_Flash_Impl::GetSetting(PP_Instance instance, |
| 252 PP_FlashSetting setting) { | 252 PP_FlashSetting setting) { |
| 253 // No current settings are supported in-process. | 253 // No current settings are supported in-process. |
| 254 return PP_MakeUndefined(); | 254 return PP_MakeUndefined(); |
| 255 } | 255 } |
| 256 | 256 |
| 257 PP_Bool PPB_Flash_Impl::SetCrashData(PP_Instance instance, |
| 258 PP_FlashCrashKey key, |
| 259 PP_Var value) { |
| 260 // Not implemented in process. |
| 261 return PP_FALSE; |
| 262 } |
| 263 |
| 264 |
| 257 PP_Bool PPB_Flash_Impl::IsClipboardFormatAvailable( | 265 PP_Bool PPB_Flash_Impl::IsClipboardFormatAvailable( |
| 258 PP_Instance instance, | 266 PP_Instance instance, |
| 259 PP_Flash_Clipboard_Type clipboard_type, | 267 PP_Flash_Clipboard_Type clipboard_type, |
| 260 PP_Flash_Clipboard_Format format) { | 268 PP_Flash_Clipboard_Format format) { |
| 261 if (!InitClipboard()) | 269 if (!InitClipboard()) |
| 262 return PP_FALSE; | 270 return PP_FALSE; |
| 263 | 271 |
| 264 if (clipboard_type != PP_FLASH_CLIPBOARD_TYPE_STANDARD) { | 272 if (clipboard_type != PP_FLASH_CLIPBOARD_TYPE_STANDARD) { |
| 265 NOTIMPLEMENTED(); | 273 NOTIMPLEMENTED(); |
| 266 return PP_FALSE; | 274 return PP_FALSE; |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 } | 679 } |
| 672 case PP_FLASH_CLIPBOARD_FORMAT_INVALID: | 680 case PP_FLASH_CLIPBOARD_FORMAT_INVALID: |
| 673 break; | 681 break; |
| 674 } | 682 } |
| 675 | 683 |
| 676 return PP_ERROR_BADARGUMENT; | 684 return PP_ERROR_BADARGUMENT; |
| 677 } | 685 } |
| 678 | 686 |
| 679 } // namespace ppapi | 687 } // namespace ppapi |
| 680 } // namespace webkit | 688 } // namespace webkit |
| OLD | NEW |