OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_PROVIDER_MAC_H_ | 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_ |
6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_ | 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_ |
7 | 7 |
8 #import "base/mac/scoped_nsobject.h" | 8 #import "base/mac/scoped_nsobject.h" |
9 #include "ui/base/dragdrop/os_exchange_data.h" | 9 #include "ui/base/dragdrop/os_exchange_data.h" |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 // Overridden from OSExchangeData::Provider: | 23 // Overridden from OSExchangeData::Provider: |
24 Provider* Clone() const override; | 24 Provider* Clone() const override; |
25 void MarkOriginatedFromRenderer() override; | 25 void MarkOriginatedFromRenderer() override; |
26 bool DidOriginateFromRenderer() const override; | 26 bool DidOriginateFromRenderer() const override; |
27 void SetString(const base::string16& data) override; | 27 void SetString(const base::string16& data) override; |
28 void SetURL(const GURL& url, const base::string16& title) override; | 28 void SetURL(const GURL& url, const base::string16& title) override; |
29 void SetFilename(const base::FilePath& path) override; | 29 void SetFilename(const base::FilePath& path) override; |
30 void SetFilenames(const std::vector<FileInfo>& filenames) override; | 30 void SetFilenames(const std::vector<FileInfo>& filenames) override; |
31 void SetPickledData(const OSExchangeData::CustomFormat& format, | 31 void SetPickledData(const OSExchangeData::CustomFormat& format, |
32 const Pickle& data) override; | 32 const base::Pickle& data) override; |
33 bool GetString(base::string16* data) const override; | 33 bool GetString(base::string16* data) const override; |
34 bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, | 34 bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, |
35 GURL* url, | 35 GURL* url, |
36 base::string16* title) const override; | 36 base::string16* title) const override; |
37 bool GetFilename(base::FilePath* path) const override; | 37 bool GetFilename(base::FilePath* path) const override; |
38 bool GetFilenames(std::vector<FileInfo>* filenames) const override; | 38 bool GetFilenames(std::vector<FileInfo>* filenames) const override; |
39 bool GetPickledData(const OSExchangeData::CustomFormat& format, | 39 bool GetPickledData(const OSExchangeData::CustomFormat& format, |
40 Pickle* data) const override; | 40 base::Pickle* data) const override; |
41 bool HasString() const override; | 41 bool HasString() const override; |
42 bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const override; | 42 bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const override; |
43 bool HasFile() const override; | 43 bool HasFile() const override; |
44 bool HasCustomFormat( | 44 bool HasCustomFormat( |
45 const OSExchangeData::CustomFormat& format) const override; | 45 const OSExchangeData::CustomFormat& format) const override; |
46 | 46 |
47 private: | 47 private: |
48 base::scoped_nsobject<NSPasteboard> pasteboard_; | 48 base::scoped_nsobject<NSPasteboard> pasteboard_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderMac); | 50 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderMac); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace ui | 53 } // namespace ui |
54 | 54 |
55 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_ | 55 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_ |
OLD | NEW |