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

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

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_
6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_
7
8 #import "base/mac/scoped_nsobject.h"
9 #include "ui/base/dragdrop/os_exchange_data.h"
10
11 @class NSPasteboard;
12
13 namespace ui {
14
15 // OSExchangeData::Provider implementation for Mac.
16 class UI_BASE_EXPORT OSExchangeDataProviderMac
17 : public OSExchangeData::Provider {
18 public:
19 OSExchangeDataProviderMac();
20 explicit OSExchangeDataProviderMac(NSPasteboard* pasteboard);
21 ~OSExchangeDataProviderMac() override;
22
23 // Overridden from OSExchangeData::Provider:
24 Provider* Clone() const override;
25 void MarkOriginatedFromRenderer() override;
26 bool DidOriginateFromRenderer() const override;
27 void SetString(const base::string16& data) override;
28 void SetURL(const GURL& url, const base::string16& title) override;
29 void SetFilename(const base::FilePath& path) override;
30 void SetFilenames(const std::vector<FileInfo>& filenames) override;
31 void SetPickledData(const OSExchangeData::CustomFormat& format,
32 const Pickle& data) override;
33 bool GetString(base::string16* data) const override;
34 bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy,
35 GURL* url,
36 base::string16* title) const override;
37 bool GetFilename(base::FilePath* path) const override;
38 bool GetFilenames(std::vector<FileInfo>* filenames) const override;
39 bool GetPickledData(const OSExchangeData::CustomFormat& format,
40 Pickle* data) const override;
41 bool HasString() const override;
42 bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const override;
43 bool HasFile() const override;
44 bool HasCustomFormat(
45 const OSExchangeData::CustomFormat& format) const override;
46
47 private:
48 base::scoped_nsobject<NSPasteboard> pasteboard_;
49
50 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderMac);
51 };
52
53 } // namespace ui
54
55 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_
OLDNEW
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc ('k') | ui/base/dragdrop/os_exchange_data_provider_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698