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

Side by Side Diff: ui/base/clipboard/custom_data_helper.h

Issue 110283005: Make aura_demo work on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix resolve 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 | « ui/base/clipboard/clipboard_aura.cc ('k') | ui/base/clipboard/custom_data_helper_mac.mm » ('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 // Due to restrictions of most operating systems, we don't directly map each 5 // Due to restrictions of most operating systems, we don't directly map each
6 // type of custom data to a native data transfer type. Instead, we serialize 6 // type of custom data to a native data transfer type. Instead, we serialize
7 // each key-value pair into the pickle as a pair of string objects, and then 7 // each key-value pair into the pickle as a pair of string objects, and then
8 // write the binary data in the pickle to the native data transfer object. 8 // write the binary data in the pickle to the native data transfer object.
9 9
10 #ifndef UI_BASE_CLIPBOARD_CUSTOM_DATA_HELPER_H_ 10 #ifndef UI_BASE_CLIPBOARD_CUSTOM_DATA_HELPER_H_
(...skipping 10 matching lines...) Expand all
21 #if defined(OS_MACOSX) 21 #if defined(OS_MACOSX)
22 #ifdef __OBJC__ 22 #ifdef __OBJC__
23 @class NSString; 23 @class NSString;
24 #else 24 #else
25 class NSString; 25 class NSString;
26 #endif 26 #endif
27 #endif // defined(OS_MACOSX) 27 #endif // defined(OS_MACOSX)
28 28
29 namespace ui { 29 namespace ui {
30 30
31 #if defined(OS_MACOSX) 31 #if defined(OS_MACOSX) && !defined(USE_AURA)
32 UI_BASE_EXPORT extern NSString* const kWebCustomDataPboardType; 32 UI_BASE_EXPORT extern NSString* const kWebCustomDataPboardType;
33 #elif (!defined(OS_WIN) && defined(USE_AURA)) || defined(TOOLKIT_GTK) 33 #elif (!defined(OS_WIN) && defined(USE_AURA)) || defined(TOOLKIT_GTK)
34 UI_BASE_EXPORT extern const char kMimeTypeWebCustomData[]; 34 UI_BASE_EXPORT extern const char kMimeTypeWebCustomData[];
35 #endif 35 #endif
36 36
37 UI_BASE_EXPORT void ReadCustomDataTypes(const void* data, 37 UI_BASE_EXPORT void ReadCustomDataTypes(const void* data,
38 size_t data_length, 38 size_t data_length,
39 std::vector<base::string16>* types); 39 std::vector<base::string16>* types);
40 UI_BASE_EXPORT void ReadCustomDataForType(const void* data, 40 UI_BASE_EXPORT void ReadCustomDataForType(const void* data,
41 size_t data_length, 41 size_t data_length,
42 const base::string16& type, 42 const base::string16& type,
43 base::string16* result); 43 base::string16* result);
44 UI_BASE_EXPORT void ReadCustomDataIntoMap( 44 UI_BASE_EXPORT void ReadCustomDataIntoMap(
45 const void* data, 45 const void* data,
46 size_t data_length, 46 size_t data_length,
47 std::map<base::string16, base::string16>* result); 47 std::map<base::string16, base::string16>* result);
48 48
49 UI_BASE_EXPORT void WriteCustomDataToPickle( 49 UI_BASE_EXPORT void WriteCustomDataToPickle(
50 const std::map<base::string16, base::string16>& data, 50 const std::map<base::string16, base::string16>& data,
51 Pickle* pickle); 51 Pickle* pickle);
52 52
53 } // namespace ui 53 } // namespace ui
54 54
55 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ 55 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_
OLDNEW
« no previous file with comments | « ui/base/clipboard/clipboard_aura.cc ('k') | ui/base/clipboard/custom_data_helper_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698