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" |
(...skipping 14 matching lines...) Expand all Loading... |
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; | 30 virtual void MarkOriginatedFromRenderer() OVERRIDE; |
31 virtual bool DidOriginateFromRenderer() const OVERRIDE; | 31 virtual bool DidOriginateFromRenderer() const OVERRIDE; |
32 virtual void SetString(const base::string16& data) OVERRIDE; | 32 virtual void SetString(const base::string16& data) OVERRIDE; |
33 virtual void SetURL(const GURL& url, const base::string16& title) OVERRIDE; | 33 virtual void SetURL(const GURL& url, const base::string16& title) OVERRIDE; |
34 virtual void SetFilename(const base::FilePath& path) OVERRIDE; | 34 virtual void SetFilename(const base::FilePath& path) OVERRIDE; |
35 virtual void SetFilenames( | 35 virtual void SetFilenames(const std::vector<FileInfo>& filenames) OVERRIDE; |
36 const std::vector<OSExchangeData::FileInfo>& filenames) OVERRIDE; | |
37 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, | 36 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, |
38 const Pickle& data) OVERRIDE; | 37 const Pickle& data) OVERRIDE; |
39 virtual bool GetString(base::string16* data) const OVERRIDE; | 38 virtual bool GetString(base::string16* data) const OVERRIDE; |
40 virtual bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, | 39 virtual bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, |
41 GURL* url, | 40 GURL* url, |
42 base::string16* title) const OVERRIDE; | 41 base::string16* title) const OVERRIDE; |
43 virtual bool GetFilename(base::FilePath* path) const OVERRIDE; | 42 virtual bool GetFilename(base::FilePath* path) const OVERRIDE; |
44 virtual bool GetFilenames( | 43 virtual bool GetFilenames(std::vector<FileInfo>* filenames) const OVERRIDE; |
45 std::vector<OSExchangeData::FileInfo>* filenames) const OVERRIDE; | |
46 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format, | 44 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format, |
47 Pickle* data) const OVERRIDE; | 45 Pickle* data) const OVERRIDE; |
48 virtual bool HasString() const OVERRIDE; | 46 virtual bool HasString() const OVERRIDE; |
49 virtual bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const | 47 virtual bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const |
50 OVERRIDE; | 48 OVERRIDE; |
51 virtual bool HasFile() const OVERRIDE; | 49 virtual bool HasFile() const OVERRIDE; |
52 virtual bool HasCustomFormat(const OSExchangeData::CustomFormat& format) const | 50 virtual bool HasCustomFormat(const OSExchangeData::CustomFormat& format) const |
53 OVERRIDE; | 51 OVERRIDE; |
54 | 52 |
55 virtual void SetHtml(const base::string16& html, | 53 virtual void SetHtml(const base::string16& html, |
(...skipping 17 matching lines...) Expand all Loading... |
73 int formats_; | 71 int formats_; |
74 | 72 |
75 // String contents. | 73 // String contents. |
76 base::string16 string_; | 74 base::string16 string_; |
77 | 75 |
78 // URL contents. | 76 // URL contents. |
79 GURL url_; | 77 GURL url_; |
80 base::string16 title_; | 78 base::string16 title_; |
81 | 79 |
82 // File name. | 80 // File name. |
83 std::vector<OSExchangeData::FileInfo> filenames_; | 81 std::vector<FileInfo> filenames_; |
84 | 82 |
85 // PICKLED_DATA contents. | 83 // PICKLED_DATA contents. |
86 PickleData pickle_data_; | 84 PickleData pickle_data_; |
87 | 85 |
88 // Drag image and offset data. | 86 // Drag image and offset data. |
89 gfx::ImageSkia drag_image_; | 87 gfx::ImageSkia drag_image_; |
90 gfx::Vector2d drag_image_offset_; | 88 gfx::Vector2d drag_image_offset_; |
91 | 89 |
92 // For HTML format | 90 // For HTML format |
93 base::string16 html_; | 91 base::string16 html_; |
94 GURL base_url_; | 92 GURL base_url_; |
95 | 93 |
96 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura); | 94 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura); |
97 }; | 95 }; |
98 | 96 |
99 } // namespace ui | 97 } // namespace ui |
100 | 98 |
101 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ | 99 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ |
OLD | NEW |