| 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_WIN_H_ | 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ |
| 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ | 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ |
| 7 | 7 |
| 8 #include <objidl.h> | 8 #include <objidl.h> |
| 9 #include <shlobj.h> | 9 #include <shlobj.h> |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 bool is_aborting_; | 118 bool is_aborting_; |
| 119 bool in_drag_loop_; | 119 bool in_drag_loop_; |
| 120 bool in_async_mode_; | 120 bool in_async_mode_; |
| 121 bool async_operation_started_; | 121 bool async_operation_started_; |
| 122 Observer* observer_; | 122 Observer* observer_; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 class UI_BASE_EXPORT OSExchangeDataProviderWin | 125 class UI_BASE_EXPORT OSExchangeDataProviderWin |
| 126 : public OSExchangeData::Provider { | 126 : public OSExchangeData::Provider { |
| 127 public: | 127 public: |
| 128 // Returns true if source has plain text that is a valid url. | |
| 129 static bool HasPlainTextURL(IDataObject* source); | |
| 130 | |
| 131 // Returns true if source has plain text that is a valid URL and sets url to | |
| 132 // that url. | |
| 133 static bool GetPlainTextURL(IDataObject* source, GURL* url); | |
| 134 | |
| 135 static DataObjectImpl* GetDataObjectImpl(const OSExchangeData& data); | 128 static DataObjectImpl* GetDataObjectImpl(const OSExchangeData& data); |
| 136 static IDataObject* GetIDataObject(const OSExchangeData& data); | 129 static IDataObject* GetIDataObject(const OSExchangeData& data); |
| 137 static IDataObjectAsyncCapability* GetIAsyncOperation( | 130 static IDataObjectAsyncCapability* GetIAsyncOperation( |
| 138 const OSExchangeData& data); | 131 const OSExchangeData& data); |
| 139 | 132 |
| 140 explicit OSExchangeDataProviderWin(IDataObject* source); | 133 explicit OSExchangeDataProviderWin(IDataObject* source); |
| 141 OSExchangeDataProviderWin(); | 134 OSExchangeDataProviderWin(); |
| 142 | 135 |
| 143 ~OSExchangeDataProviderWin() override; | 136 ~OSExchangeDataProviderWin() override; |
| 144 | 137 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // Drag image and offset data. Only used for Ash. | 183 // Drag image and offset data. Only used for Ash. |
| 191 gfx::ImageSkia drag_image_; | 184 gfx::ImageSkia drag_image_; |
| 192 gfx::Vector2d drag_image_offset_; | 185 gfx::Vector2d drag_image_offset_; |
| 193 | 186 |
| 194 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); | 187 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); |
| 195 }; | 188 }; |
| 196 | 189 |
| 197 } // namespace ui | 190 } // namespace ui |
| 198 | 191 |
| 199 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ | 192 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ |
| OLD | NEW |