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

Side by Side Diff: ui/base/dragdrop/os_exchange_data.h

Issue 1235713004: mac: Fix os_exchange_data_provider_mac.mm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | ui/base/dragdrop/os_exchange_data_provider_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 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_ 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_
6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_ 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <set> 10 #include <set>
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // Full path to one or more files. See also SetFilenames() in Provider. 183 // Full path to one or more files. See also SetFilenames() in Provider.
184 void SetFilenames( 184 void SetFilenames(
185 const std::vector<FileInfo>& file_names); 185 const std::vector<FileInfo>& file_names);
186 // Adds pickled data of the specified format. 186 // Adds pickled data of the specified format.
187 void SetPickledData(const CustomFormat& format, const base::Pickle& data); 187 void SetPickledData(const CustomFormat& format, const base::Pickle& data);
188 188
189 // These functions retrieve data of the specified type. If data exists, the 189 // These functions retrieve data of the specified type. If data exists, the
190 // functions return and the result is in the out parameter. If the data does 190 // functions return and the result is in the out parameter. If the data does
191 // not exist, the out parameter is not touched. The out parameter cannot be 191 // not exist, the out parameter is not touched. The out parameter cannot be
192 // NULL. 192 // NULL.
193 // GetString() returns the plain text representation of the pasteboard
194 // contents.
193 bool GetString(base::string16* data) const; 195 bool GetString(base::string16* data) const;
194 bool GetURLAndTitle(FilenameToURLPolicy policy, 196 bool GetURLAndTitle(FilenameToURLPolicy policy,
195 GURL* url, 197 GURL* url,
196 base::string16* title) const; 198 base::string16* title) const;
197 // Return the path of a file, if available. 199 // Return the path of a file, if available.
198 bool GetFilename(base::FilePath* path) const; 200 bool GetFilename(base::FilePath* path) const;
199 bool GetFilenames( 201 bool GetFilenames(
200 std::vector<FileInfo>* file_names) const; 202 std::vector<FileInfo>* file_names) const;
201 bool GetPickledData(const CustomFormat& format, base::Pickle* data) const; 203 bool GetPickledData(const CustomFormat& format, base::Pickle* data) const;
202 204
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 private: 236 private:
235 // Provides the actual data. 237 // Provides the actual data.
236 scoped_ptr<Provider> provider_; 238 scoped_ptr<Provider> provider_;
237 239
238 DISALLOW_COPY_AND_ASSIGN(OSExchangeData); 240 DISALLOW_COPY_AND_ASSIGN(OSExchangeData);
239 }; 241 };
240 242
241 } // namespace ui 243 } // namespace ui
242 244
243 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_ 245 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/dragdrop/os_exchange_data_provider_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698