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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // Overridden from OSExchangeData::Provider: | 59 // Overridden from OSExchangeData::Provider: |
60 virtual Provider* Clone() const OVERRIDE; | 60 virtual Provider* Clone() const OVERRIDE; |
61 virtual void SetString(const base::string16& data) OVERRIDE; | 61 virtual void SetString(const base::string16& data) OVERRIDE; |
62 virtual void SetURL(const GURL& url, const base::string16& title) OVERRIDE; | 62 virtual void SetURL(const GURL& url, const base::string16& title) OVERRIDE; |
63 virtual void SetFilename(const base::FilePath& path) OVERRIDE; | 63 virtual void SetFilename(const base::FilePath& path) OVERRIDE; |
64 virtual void SetFilenames( | 64 virtual void SetFilenames( |
65 const std::vector<OSExchangeData::FileInfo>& filenames) OVERRIDE; | 65 const std::vector<OSExchangeData::FileInfo>& filenames) OVERRIDE; |
66 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, | 66 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, |
67 const Pickle& pickle) OVERRIDE; | 67 const Pickle& pickle) OVERRIDE; |
68 virtual bool GetString(base::string16* data) const OVERRIDE; | 68 virtual bool GetString(base::string16* data) const OVERRIDE; |
69 virtual bool GetURLAndTitle(GURL* url, base::string16* title) const OVERRIDE; | 69 virtual bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, |
| 70 GURL* url, |
| 71 base::string16* title) const OVERRIDE; |
70 virtual bool GetFilename(base::FilePath* path) const OVERRIDE; | 72 virtual bool GetFilename(base::FilePath* path) const OVERRIDE; |
71 virtual bool GetFilenames( | 73 virtual bool GetFilenames( |
72 std::vector<OSExchangeData::FileInfo>* filenames) const OVERRIDE; | 74 std::vector<OSExchangeData::FileInfo>* filenames) const OVERRIDE; |
73 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format, | 75 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format, |
74 Pickle* pickle) const OVERRIDE; | 76 Pickle* pickle) const OVERRIDE; |
75 virtual bool HasString() const OVERRIDE; | 77 virtual bool HasString() const OVERRIDE; |
76 virtual bool HasURL() const OVERRIDE; | 78 virtual bool HasURL() const OVERRIDE; |
77 virtual bool HasFile() const OVERRIDE; | 79 virtual bool HasFile() const OVERRIDE; |
78 virtual bool HasCustomFormat(const OSExchangeData::CustomFormat& format) const | 80 virtual bool HasCustomFormat(const OSExchangeData::CustomFormat& format) const |
79 OVERRIDE; | 81 OVERRIDE; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 130 |
129 // Takes a snapshot of |format_map_| and offers it to other windows. | 131 // Takes a snapshot of |format_map_| and offers it to other windows. |
130 mutable SelectionOwner selection_owner_; | 132 mutable SelectionOwner selection_owner_; |
131 | 133 |
132 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAuraX11); | 134 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAuraX11); |
133 }; | 135 }; |
134 | 136 |
135 } // namespace ui | 137 } // namespace ui |
136 | 138 |
137 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ | 139 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ |
OLD | NEW |