diff options
Diffstat (limited to 'ppapi/shared_impl/ppb_flash_shared.cc')
-rw-r--r-- | ppapi/shared_impl/ppb_flash_shared.cc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ppapi/shared_impl/ppb_flash_shared.cc b/ppapi/shared_impl/ppb_flash_shared.cc new file mode 100644 index 0000000..c0504bf --- /dev/null +++ b/ppapi/shared_impl/ppb_flash_shared.cc @@ -0,0 +1,31 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "ppapi/shared_impl/ppb_flash_shared.h" + +namespace ppapi { + +PPB_Flash_Shared::PPB_Flash_Shared() { +} + +PPB_Flash_Shared::~PPB_Flash_Shared() { +} + +// static +bool PPB_Flash_Shared::IsValidClipboardType( + PP_Flash_Clipboard_Type clipboard_type) { + return clipboard_type == PP_FLASH_CLIPBOARD_TYPE_STANDARD || + clipboard_type == PP_FLASH_CLIPBOARD_TYPE_SELECTION; +} + +// static +bool PPB_Flash_Shared::IsValidClipboardFormat( + PP_Flash_Clipboard_Format format) { + // Purposely excludes |PP_FLASH_CLIPBOARD_FORMAT_INVALID|. + return format == PP_FLASH_CLIPBOARD_FORMAT_PLAINTEXT || + format == PP_FLASH_CLIPBOARD_FORMAT_HTML || + format == PP_FLASH_CLIPBOARD_FORMAT_RTF; +} + +} // namespace ppapi |