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

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

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 #include "ui/aura/mus/os_exchange_data_provider_mus.h" 5 #include "ui/aura/mus/os_exchange_data_provider_mus.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 #endif 318 #endif
319 319
320 #if defined(USE_AURA) || defined(OS_MACOSX) 320 #if defined(USE_AURA) || defined(OS_MACOSX)
321 void OSExchangeDataProviderMus::SetDragImage( 321 void OSExchangeDataProviderMus::SetDragImage(
322 const gfx::ImageSkia& image, 322 const gfx::ImageSkia& image,
323 const gfx::Vector2d& cursor_offset) { 323 const gfx::Vector2d& cursor_offset) {
324 drag_image_ = image; 324 drag_image_ = image;
325 drag_image_offset_ = cursor_offset; 325 drag_image_offset_ = cursor_offset;
326 } 326 }
327 327
328 const gfx::ImageSkia& OSExchangeDataProviderMus::GetDragImage() const { 328 gfx::ImageSkia OSExchangeDataProviderMus::GetDragImage() const {
329 return drag_image_; 329 return drag_image_;
330 } 330 }
331 331
332 const gfx::Vector2d& OSExchangeDataProviderMus::GetDragImageOffset() const { 332 gfx::Vector2d OSExchangeDataProviderMus::GetDragImageOffset() const {
333 return drag_image_offset_; 333 return drag_image_offset_;
334 } 334 }
335 #endif 335 #endif
336 336
337 bool OSExchangeDataProviderMus::GetFileURL(GURL* url) const { 337 bool OSExchangeDataProviderMus::GetFileURL(GURL* url) const {
338 base::FilePath file_path; 338 base::FilePath file_path;
339 if (!GetFilename(&file_path)) 339 if (!GetFilename(&file_path))
340 return false; 340 return false;
341 341
342 GURL test_url = net::FilePathToFileURL(file_path); 342 GURL test_url = net::FilePathToFileURL(file_path);
(...skipping 13 matching lines...) Expand all
356 GURL test_url(str); 356 GURL test_url(str);
357 if (!test_url.is_valid()) 357 if (!test_url.is_valid())
358 return false; 358 return false;
359 359
360 if (url) 360 if (url)
361 *url = test_url; 361 *url = test_url;
362 return true; 362 return true;
363 } 363 }
364 364
365 } // namespace aura 365 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698