Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: ui/aura/mus/os_exchange_data_provider_mus.h

Issue 2792183002: Delete ash-based code for Windows drag-and-drop graphics. (Closed)
Patch Set: ashdrag: addheaders Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_AURA_MUS_OS_EXCHANGE_DATA_PROVIDER_MUS_H_ 5 #ifndef UI_AURA_MUS_OS_EXCHANGE_DATA_PROVIDER_MUS_H_
6 #define UI_AURA_MUS_OS_EXCHANGE_DATA_PROVIDER_MUS_H_ 6 #define UI_AURA_MUS_OS_EXCHANGE_DATA_PROVIDER_MUS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 #if defined(USE_AURA) 83 #if defined(USE_AURA)
84 void SetHtml(const base::string16& html, const GURL& base_url) override; 84 void SetHtml(const base::string16& html, const GURL& base_url) override;
85 bool GetHtml(base::string16* html, GURL* base_url) const override; 85 bool GetHtml(base::string16* html, GURL* base_url) const override;
86 bool HasHtml() const override; 86 bool HasHtml() const override;
87 #endif 87 #endif
88 88
89 #if defined(USE_AURA) || defined(OS_MACOSX) 89 #if defined(USE_AURA) || defined(OS_MACOSX)
90 void SetDragImage(const gfx::ImageSkia& image, 90 void SetDragImage(const gfx::ImageSkia& image,
91 const gfx::Vector2d& cursor_offset) override; 91 const gfx::Vector2d& cursor_offset) override;
92 const gfx::ImageSkia& GetDragImage() const override; 92 gfx::ImageSkia GetDragImage() const override;
93 const gfx::Vector2d& GetDragImageOffset() const override; 93 gfx::Vector2d GetDragImageOffset() const override;
94 #endif 94 #endif
95 95
96 private: 96 private:
97 // Returns true if |formats_| contains a file format and the file name can be 97 // Returns true if |formats_| contains a file format and the file name can be
98 // parsed as a URL. 98 // parsed as a URL.
99 bool GetFileURL(GURL* url) const; 99 bool GetFileURL(GURL* url) const;
100 100
101 // Returns true if |formats_| contains a string format and the string can be 101 // Returns true if |formats_| contains a string format and the string can be
102 // parsed as a URL. 102 // parsed as a URL.
103 bool GetPlainTextURL(GURL* url) const; 103 bool GetPlainTextURL(GURL* url) const;
104 104
105 // Drag image and offset data. 105 // Drag image and offset data.
106 gfx::ImageSkia drag_image_; 106 gfx::ImageSkia drag_image_;
107 gfx::Vector2d drag_image_offset_; 107 gfx::Vector2d drag_image_offset_;
108 108
109 Data mime_data_; 109 Data mime_data_;
110 110
111 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderMus); 111 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderMus);
112 }; 112 };
113 113
114 } // namespace aura 114 } // namespace aura
115 115
116 #endif // UI_AURA_MUS_OS_EXCHANGE_DATA_PROVIDER_MUS_H_ 116 #endif // UI_AURA_MUS_OS_EXCHANGE_DATA_PROVIDER_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698