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

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

Issue 16402012: Use a direct include of strings headers in ui/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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_win.cc ('k') | ui/base/clipboard/scoped_clipboard_writer.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 // 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_
11 #define UI_BASE_CLIPBOARD_CUSTOM_DATA_HELPER_H_ 11 #define UI_BASE_CLIPBOARD_CUSTOM_DATA_HELPER_H_
12 12
13 #include <map> 13 #include <map>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/string16.h" 16 #include "base/strings/string16.h"
17 #include "ui/base/ui_export.h" 17 #include "ui/base/ui_export.h"
18 18
19 class Pickle; 19 class Pickle;
20 20
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
(...skipping 17 matching lines...) Expand all
44 UI_EXPORT void ReadCustomDataIntoMap(const void* data, 44 UI_EXPORT void ReadCustomDataIntoMap(const void* data,
45 size_t data_length, 45 size_t data_length,
46 std::map<string16, string16>* result); 46 std::map<string16, string16>* result);
47 47
48 UI_EXPORT void WriteCustomDataToPickle(const std::map<string16, string16>& data, 48 UI_EXPORT void WriteCustomDataToPickle(const std::map<string16, string16>& data,
49 Pickle* pickle); 49 Pickle* pickle);
50 50
51 } // namespace ui 51 } // namespace ui
52 52
53 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ 53 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_
OLDNEW
« no previous file with comments | « ui/base/clipboard/clipboard_win.cc ('k') | ui/base/clipboard/scoped_clipboard_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698