OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "ui/base/dragdrop/os_exchange_data.h" | 11 #include "ui/base/dragdrop/os_exchange_data.h" |
12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
13 #include "base/pickle.h" | 13 #include "base/pickle.h" |
14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
15 #include "third_party/skia/include/core/SkBitmap.h" | 15 #include "third_party/skia/include/core/SkBitmap.h" |
16 | 16 |
17 namespace ui { | 17 namespace ui { |
18 | 18 |
19 // OSExchangeData::Provider implementation for aura on linux. | 19 // OSExchangeData::Provider implementation for aura on linux. |
20 class UI_EXPORT OSExchangeDataProviderAura : public OSExchangeData::Provider { | 20 class UI_EXPORT OSExchangeDataProviderAura : public OSExchangeData::Provider { |
21 public: | 21 public: |
22 OSExchangeDataProviderAura(); | 22 OSExchangeDataProviderAura(); |
23 | 23 virtual ~OSExchangeDataProviderAura(); |
24 virtual ~OSExchangeDataProviderAura() {} | |
25 | 24 |
26 // Overridden from OSExchangeData::Provider: | 25 // Overridden from OSExchangeData::Provider: |
27 virtual void SetString(const string16& data) OVERRIDE; | 26 virtual void SetString(const string16& data) OVERRIDE; |
28 virtual void SetURL(const GURL& url, const string16& title) OVERRIDE; | 27 virtual void SetURL(const GURL& url, const string16& title) OVERRIDE; |
29 virtual void SetFilename(const FilePath& path) OVERRIDE; | 28 virtual void SetFilename(const FilePath& path) OVERRIDE; |
30 virtual void SetPickledData(OSExchangeData::CustomFormat format, | 29 virtual void SetPickledData(OSExchangeData::CustomFormat format, |
31 const Pickle& data) OVERRIDE; | 30 const Pickle& data) OVERRIDE; |
32 virtual bool GetString(string16* data) const OVERRIDE; | 31 virtual bool GetString(string16* data) const OVERRIDE; |
33 virtual bool GetURLAndTitle(GURL* url, string16* title) const OVERRIDE; | 32 virtual bool GetURLAndTitle(GURL* url, string16* title) const OVERRIDE; |
34 virtual bool GetFilename(FilePath* path) const OVERRIDE; | 33 virtual bool GetFilename(FilePath* path) const OVERRIDE; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 80 |
82 // Drag image and offset data. | 81 // Drag image and offset data. |
83 SkBitmap drag_image_; | 82 SkBitmap drag_image_; |
84 | 83 |
85 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura); | 84 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura); |
86 }; | 85 }; |
87 | 86 |
88 } // namespace ui | 87 } // namespace ui |
89 | 88 |
90 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ | 89 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ |
OLD | NEW |