| 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_AURA_H_ | 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ |
| 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ | 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/pickle.h" | 11 #include "base/pickle.h" |
| 12 #include "ui/base/dragdrop/os_exchange_data.h" | 12 #include "ui/base/dragdrop/os_exchange_data.h" |
| 13 #include "ui/gfx/image/image_skia.h" | 13 #include "ui/gfx/image/image_skia.h" |
| 14 #include "ui/gfx/vector2d.h" | 14 #include "ui/gfx/vector2d.h" |
| 15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
| 16 | 16 |
| 17 namespace ui { | 17 namespace ui { |
| 18 | 18 |
| 19 class Clipboard; | 19 class Clipboard; |
| 20 | 20 |
| 21 // OSExchangeData::Provider implementation for aura on linux. | 21 // OSExchangeData::Provider implementation for aura on linux. |
| 22 class UI_BASE_EXPORT OSExchangeDataProviderAura | 22 class UI_BASE_EXPORT OSExchangeDataProviderAura |
| 23 : public OSExchangeData::Provider { | 23 : public OSExchangeData::Provider { |
| 24 public: | 24 public: |
| 25 OSExchangeDataProviderAura(); | 25 OSExchangeDataProviderAura(); |
| 26 virtual ~OSExchangeDataProviderAura(); | 26 virtual ~OSExchangeDataProviderAura(); |
| 27 | 27 |
| 28 // Overridden from OSExchangeData::Provider: | 28 // Overridden from OSExchangeData::Provider: |
| 29 virtual Provider* Clone() const OVERRIDE; | 29 virtual Provider* Clone() const OVERRIDE; |
| 30 virtual void MarkOriginatedFromRenderer() OVERRIDE; |
| 31 virtual bool DidOriginateFromRenderer() const OVERRIDE; |
| 30 virtual void SetString(const base::string16& data) OVERRIDE; | 32 virtual void SetString(const base::string16& data) OVERRIDE; |
| 31 virtual void SetURL(const GURL& url, const base::string16& title) OVERRIDE; | 33 virtual void SetURL(const GURL& url, const base::string16& title) OVERRIDE; |
| 32 virtual void SetFilename(const base::FilePath& path) OVERRIDE; | 34 virtual void SetFilename(const base::FilePath& path) OVERRIDE; |
| 33 virtual void SetFilenames( | 35 virtual void SetFilenames( |
| 34 const std::vector<OSExchangeData::FileInfo>& filenames) OVERRIDE; | 36 const std::vector<OSExchangeData::FileInfo>& filenames) OVERRIDE; |
| 35 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, | 37 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, |
| 36 const Pickle& data) OVERRIDE; | 38 const Pickle& data) OVERRIDE; |
| 37 virtual bool GetString(base::string16* data) const OVERRIDE; | 39 virtual bool GetString(base::string16* data) const OVERRIDE; |
| 38 virtual bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, | 40 virtual bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, |
| 39 GURL* url, | 41 GURL* url, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // For HTML format | 91 // For HTML format |
| 90 base::string16 html_; | 92 base::string16 html_; |
| 91 GURL base_url_; | 93 GURL base_url_; |
| 92 | 94 |
| 93 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura); | 95 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura); |
| 94 }; | 96 }; |
| 95 | 97 |
| 96 } // namespace ui | 98 } // namespace ui |
| 97 | 99 |
| 98 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ | 100 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ |
| OLD | NEW |