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 <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 // Win8 SDK compatibility, see http://goo.gl/fufvl for more information. | 13 // Win8 SDK compatibility, see http://goo.gl/fufvl for more information. |
14 // "Note: This interface has been renamed IDataObjectAsyncCapability." | 14 // "Note: This interface has been renamed IDataObjectAsyncCapability." |
15 // If we're building on pre-8 we define it to its old name. It's documented as | 15 // If we're building on pre-8 we define it to its old name. It's documented as |
16 // being binary compatible. | 16 // being binary compatible. |
17 #ifndef __IDataObjectAsyncCapability_FWD_DEFINED__ | 17 #ifndef __IDataObjectAsyncCapability_FWD_DEFINED__ |
18 #define IDataObjectAsyncCapability IAsyncOperation | 18 #define IDataObjectAsyncCapability IAsyncOperation |
19 #endif | 19 #endif |
20 | 20 |
21 #include "base/memory/scoped_vector.h" | 21 #include "base/memory/scoped_vector.h" |
22 #include "base/win/scoped_comptr.h" | 22 #include "base/win/scoped_comptr.h" |
23 #include "ui/base/dragdrop/os_exchange_data.h" | 23 #include "ui/base/dragdrop/os_exchange_data.h" |
24 #include "ui/base/ui_base_export.h" | 24 #include "ui/base/ui_base_export.h" |
| 25 #include "ui/gfx/geometry/vector2d.h" |
25 #include "ui/gfx/image/image_skia.h" | 26 #include "ui/gfx/image/image_skia.h" |
26 #include "ui/gfx/vector2d.h" | |
27 | 27 |
28 namespace ui { | 28 namespace ui { |
29 | 29 |
30 class DataObjectImpl : public DownloadFileObserver, | 30 class DataObjectImpl : public DownloadFileObserver, |
31 public IDataObject, | 31 public IDataObject, |
32 public IDataObjectAsyncCapability { | 32 public IDataObjectAsyncCapability { |
33 public: | 33 public: |
34 class Observer { | 34 class Observer { |
35 public: | 35 public: |
36 virtual void OnWaitForData() = 0; | 36 virtual void OnWaitForData() = 0; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 // Drag image and offset data. Only used for Ash. | 193 // Drag image and offset data. Only used for Ash. |
194 gfx::ImageSkia drag_image_; | 194 gfx::ImageSkia drag_image_; |
195 gfx::Vector2d drag_image_offset_; | 195 gfx::Vector2d drag_image_offset_; |
196 | 196 |
197 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); | 197 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); |
198 }; | 198 }; |
199 | 199 |
200 } // namespace ui | 200 } // namespace ui |
201 | 201 |
202 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ | 202 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ |
OLD | NEW |