OLD | NEW |
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_PROVIDER_AURAX11_H_ | 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ |
6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ | 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 void RetrieveTargets(std::vector<Atom>* targets) const; | 56 void RetrieveTargets(std::vector<Atom>* targets) const; |
57 | 57 |
58 // Makes a copy of the format map currently being offered. | 58 // Makes a copy of the format map currently being offered. |
59 SelectionFormatMap GetFormatMap() const; | 59 SelectionFormatMap GetFormatMap() const; |
60 | 60 |
61 const base::FilePath& file_contents_name() const { | 61 const base::FilePath& file_contents_name() const { |
62 return file_contents_name_; | 62 return file_contents_name_; |
63 } | 63 } |
64 | 64 |
65 // Overridden from OSExchangeData::Provider: | 65 // Overridden from OSExchangeData::Provider: |
66 Provider* Clone() const override; | 66 std::unique_ptr<Provider> Clone() const override; |
67 void MarkOriginatedFromRenderer() override; | 67 void MarkOriginatedFromRenderer() override; |
68 bool DidOriginateFromRenderer() const override; | 68 bool DidOriginateFromRenderer() const override; |
69 void SetString(const base::string16& data) override; | 69 void SetString(const base::string16& data) override; |
70 void SetURL(const GURL& url, const base::string16& title) override; | 70 void SetURL(const GURL& url, const base::string16& title) override; |
71 void SetFilename(const base::FilePath& path) override; | 71 void SetFilename(const base::FilePath& path) override; |
72 void SetFilenames(const std::vector<FileInfo>& filenames) override; | 72 void SetFilenames(const std::vector<FileInfo>& filenames) override; |
73 void SetPickledData(const Clipboard::FormatType& format, | 73 void SetPickledData(const Clipboard::FormatType& format, |
74 const base::Pickle& pickle) override; | 74 const base::Pickle& pickle) override; |
75 bool GetString(base::string16* data) const override; | 75 bool GetString(base::string16* data) const override; |
76 bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, | 76 bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 // Takes a snapshot of |format_map_| and offers it to other windows. | 142 // Takes a snapshot of |format_map_| and offers it to other windows. |
143 mutable SelectionOwner selection_owner_; | 143 mutable SelectionOwner selection_owner_; |
144 | 144 |
145 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAuraX11); | 145 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAuraX11); |
146 }; | 146 }; |
147 | 147 |
148 } // namespace ui | 148 } // namespace ui |
149 | 149 |
150 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ | 150 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ |
OLD | NEW |