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

Side by Side Diff: ppapi/shared_impl/ppb_flash_shared.cc

Issue 10169040: Move the rest of the Flash functions to the thunk system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/shared_impl/ppb_flash_shared.h ('k') | ppapi/thunk/interfaces_ppb_private_flash.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/shared_impl/ppb_flash_shared.h" 5 #include "ppapi/shared_impl/ppb_flash_shared.h"
6 6
7 namespace ppapi { 7 namespace ppapi {
8 8
9 PPB_Flash_Shared::PPB_Flash_Shared() { 9 PPB_Flash_Shared::PPB_Flash_Shared() {
10 } 10 }
11 11
12 PPB_Flash_Shared::~PPB_Flash_Shared() { 12 PPB_Flash_Shared::~PPB_Flash_Shared() {
13 } 13 }
14 14
15 void PPB_Flash_Shared::FreeDirContents(PP_Instance instance,
16 PP_DirContents_Dev* contents) {
17 for (int32_t i = 0; i < contents->count; ++i)
18 delete[] contents->entries[i].name;
19 delete[] contents->entries;
20 delete contents;
21 }
22
15 // static 23 // static
16 bool PPB_Flash_Shared::IsValidClipboardType( 24 bool PPB_Flash_Shared::IsValidClipboardType(
17 PP_Flash_Clipboard_Type clipboard_type) { 25 PP_Flash_Clipboard_Type clipboard_type) {
18 return clipboard_type == PP_FLASH_CLIPBOARD_TYPE_STANDARD || 26 return clipboard_type == PP_FLASH_CLIPBOARD_TYPE_STANDARD ||
19 clipboard_type == PP_FLASH_CLIPBOARD_TYPE_SELECTION; 27 clipboard_type == PP_FLASH_CLIPBOARD_TYPE_SELECTION;
20 } 28 }
21 29
22 // static 30 // static
23 bool PPB_Flash_Shared::IsValidClipboardFormat( 31 bool PPB_Flash_Shared::IsValidClipboardFormat(
24 PP_Flash_Clipboard_Format format) { 32 PP_Flash_Clipboard_Format format) {
25 // Purposely excludes |PP_FLASH_CLIPBOARD_FORMAT_INVALID|. 33 // Purposely excludes |PP_FLASH_CLIPBOARD_FORMAT_INVALID|.
26 return format == PP_FLASH_CLIPBOARD_FORMAT_PLAINTEXT || 34 return format == PP_FLASH_CLIPBOARD_FORMAT_PLAINTEXT ||
27 format == PP_FLASH_CLIPBOARD_FORMAT_HTML || 35 format == PP_FLASH_CLIPBOARD_FORMAT_HTML ||
28 format == PP_FLASH_CLIPBOARD_FORMAT_RTF; 36 format == PP_FLASH_CLIPBOARD_FORMAT_RTF;
29 } 37 }
30 38
31 } // namespace ppapi 39 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_flash_shared.h ('k') | ppapi/thunk/interfaces_ppb_private_flash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698