| 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 <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
| 9 | 9 |
| 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. | 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 return file_contents_name_; | 60 return file_contents_name_; |
| 61 } | 61 } |
| 62 | 62 |
| 63 // Overridden from OSExchangeData::Provider: | 63 // Overridden from OSExchangeData::Provider: |
| 64 virtual Provider* Clone() const OVERRIDE; | 64 virtual Provider* Clone() const OVERRIDE; |
| 65 virtual void MarkOriginatedFromRenderer() OVERRIDE; | 65 virtual void MarkOriginatedFromRenderer() OVERRIDE; |
| 66 virtual bool DidOriginateFromRenderer() const OVERRIDE; | 66 virtual bool DidOriginateFromRenderer() const OVERRIDE; |
| 67 virtual void SetString(const base::string16& data) OVERRIDE; | 67 virtual void SetString(const base::string16& data) OVERRIDE; |
| 68 virtual void SetURL(const GURL& url, const base::string16& title) OVERRIDE; | 68 virtual void SetURL(const GURL& url, const base::string16& title) OVERRIDE; |
| 69 virtual void SetFilename(const base::FilePath& path) OVERRIDE; | 69 virtual void SetFilename(const base::FilePath& path) OVERRIDE; |
| 70 virtual void SetFilenames( | 70 virtual void SetFilenames(const std::vector<FileInfo>& filenames) OVERRIDE; |
| 71 const std::vector<OSExchangeData::FileInfo>& filenames) OVERRIDE; | |
| 72 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, | 71 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, |
| 73 const Pickle& pickle) OVERRIDE; | 72 const Pickle& pickle) OVERRIDE; |
| 74 virtual bool GetString(base::string16* data) const OVERRIDE; | 73 virtual bool GetString(base::string16* data) const OVERRIDE; |
| 75 virtual bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, | 74 virtual bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, |
| 76 GURL* url, | 75 GURL* url, |
| 77 base::string16* title) const OVERRIDE; | 76 base::string16* title) const OVERRIDE; |
| 78 virtual bool GetFilename(base::FilePath* path) const OVERRIDE; | 77 virtual bool GetFilename(base::FilePath* path) const OVERRIDE; |
| 79 virtual bool GetFilenames( | 78 virtual bool GetFilenames(std::vector<FileInfo>* filenames) const OVERRIDE; |
| 80 std::vector<OSExchangeData::FileInfo>* filenames) const OVERRIDE; | |
| 81 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format, | 79 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format, |
| 82 Pickle* pickle) const OVERRIDE; | 80 Pickle* pickle) const OVERRIDE; |
| 83 virtual bool HasString() const OVERRIDE; | 81 virtual bool HasString() const OVERRIDE; |
| 84 virtual bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const | 82 virtual bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const |
| 85 OVERRIDE; | 83 OVERRIDE; |
| 86 virtual bool HasFile() const OVERRIDE; | 84 virtual bool HasFile() const OVERRIDE; |
| 87 virtual bool HasCustomFormat(const OSExchangeData::CustomFormat& format) const | 85 virtual bool HasCustomFormat(const OSExchangeData::CustomFormat& format) const |
| 88 OVERRIDE; | 86 OVERRIDE; |
| 89 | 87 |
| 90 virtual void SetFileContents(const base::FilePath& filename, | 88 virtual void SetFileContents(const base::FilePath& filename, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 141 |
| 144 // 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. |
| 145 mutable SelectionOwner selection_owner_; | 143 mutable SelectionOwner selection_owner_; |
| 146 | 144 |
| 147 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAuraX11); | 145 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAuraX11); |
| 148 }; | 146 }; |
| 149 | 147 |
| 150 } // namespace ui | 148 } // namespace ui |
| 151 | 149 |
| 152 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ | 150 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ |
| OLD | NEW |